使用java-websocket框架开发websocket客户端时遇到的两个问题
WebSocketClient objects are not reuseableYou cannot initialize a reconnect out of the websocket thread. Use reconnect in another thread to insure a successful cleanup.今天主要解决如上这两个问题。使用的java-websocket版本是1.5.1参考的文章:关于WebSocket的 WebSocketClient objects .
原创
2021-11-06 15:27:08 ·
6208 阅读 ·
2 评论