-
Notifications
You must be signed in to change notification settings - Fork 144
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
同时接收两条websocket消息,只回调了一次 #45
Comments
@chenhuaqiang6 重现步骤 |
服务器发的websocket消息比较多时,看时间戳,有两条消息时间戳一样,几乎是同时过来的,activity中,public void onMessage(String message, T data) {}这个回调只看到一条消息,有一条没回调,但在WebSocketWrapper中,LogUtil.e(TAG, "WebSocket received message:" + response.toString());能看到打印两条消息 |
@chenhuaqiang6 这个问题我没有复现过。 |
我这边也出现了这样的问题,就是服务器几乎同时推送过来多条数据,public void onMessage(String message, T data) {}这个回调里面会出现丢数据的情况 |
TextResponse 下的onResponse方法里面的dispatcher.onMessage(responseText, delivery);可以打印收到的消息,然后delivery.onMessage(message, ws);也可以转发消息 但是在Activity中继承的SimpleListener 下 public void onMessage(String message, T data) 中接收消息 总会出现偶尔接收不到消息的问题(未找到必现方法 但是不定期出现) |
同时接收两条websocket消息,只回调了一次
The text was updated successfully, but these errors were encountered: