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

客户端收到多条回复信息。 #110

Open
Gipsyzgm opened this issue May 24, 2021 · 1 comment
Open

客户端收到多条回复信息。 #110

Gipsyzgm opened this issue May 24, 2021 · 1 comment

Comments

@Gipsyzgm
Copy link

图片
我在使用时出现了服务器发送了一次消息,但 客户端在OnData收到多条信息的情况。我把 state.receivePipe.TryDequeue();方法放到 OnData?.Invoke(message); 之前可以避免这个问题。
这么做会出现其他问题吗?或者有其他更好的解决方法?

@absences
Copy link

absences commented Apr 6, 2023

peek and dequeue the msg's queue,will not pause the normal process

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