Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFWSModule::AddReceiveCallBack 绑定的pb消息回调无法触发 #280

Open
littlefork opened this issue Sep 18, 2020 · 2 comments
Open

Comments

@littlefork
Copy link

littlefork commented Sep 18, 2020

bug

NFWSModule.cpp 中 NFWSModule::OnReceiveNetPack 缺少 msgID > 0 时触发回调函数的逻辑

建议

369行 else if (msgID == 0) 修改为 else

@ketoo
Copy link
Owner

ketoo commented Sep 18, 2020

确认bug。

因为 == 0 是text 消息,需要自己解包,因此无内置消息id。
而 > 0 是pb 的 binary消息。

@ketoo
Copy link
Owner

ketoo commented Sep 19, 2020

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants