0xZhangKe / WebSocketDemo

用于简化 WebSocket 在 Android 平台使用的封装方法
Other
817 stars 144 forks source link

如何断开websocket连接? #62

Open jjjjbababy opened 4 years ago

jjjjbababy commented 4 years ago

如何断开websocket连接?

magoo-lau commented 3 years ago

disConnect及destroy后立即重启会产生这个错误 java.lang.Exception: WebSocketEngine not start! at com.zhangke.websocket.WebSocketEngine.connect(WebSocketEngine.java:49) at com.zhangke.websocket.WebSocketManager.reconnectOnce(WebSocketManager.java:292) at com.zhangke.websocket.DefaultReconnectManager$1.run(DefaultReconnectManager.java:97) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)