各位大神有通过WebSocket做过长连接的,android端这边使用WebSocket长连接时不时就关闭,关闭响应码是1006。虽然有做心跳包处理,但是这个问题还是依然存在,看看各位大神有没有遇到类似的,指点下。错误信息是:E/长连接关闭: 长连接已经走了onClose方法1006 "The connection was closed because the other endpoint did not respond with a pong in time. For more information check: https://github.com/TooTallNate/Java-WebSocket/wiki/Lost-connection-detection;"
网友评论