-
Notifications
You must be signed in to change notification settings - Fork 332
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
信道接收顺序错乱问题 #38
Comments
能否贴一下代码看看呢? |
服务端代码: |
额,tunnel.broadcast 是异步的操作,循环一个异步的操作不代表会按顺序,这是异步的特性。建议使用队列。 |
请问有提供相关的函数吗?服务端发送消息我只看到有broadcast |
方便把服务端broadcast之后的返回打印出来吗?打印出来看一下返回的结果是什么 |
下面是服务端的代码: |
看看日志输出的message是什么 |
原来可以从这里下log…… |
这个我们再排查一下 |
按照我写的服务端代码逻辑,
首先tunnel.broadcast消息A,然后tunnel.broadcast消息B。
在客户端上正常应该先收到A,然后才收到B,但是有时候会先收到B,再收到A。
这种情况怎么处理?
The text was updated successfully, but these errors were encountered: