Describe the bug
When I try to reconnect the websocket after the connection unexpected disconnected, the error "java.lang.IllegalStateException: WebSocketClient objects are not reuseable" has occurred. I try to change the thread from main thread to another, but the error still occured.
To Reproduce
Steps to reproduce the behavior:
Disconnect the websocket connection.
Call reconnect method in main thread or another thread (not websocket client thread)
The error occured.
Expected behavior
The websocket client can be reconnected normally.
Debug log
java.lang.IllegalStateException: WebSocketClient objects are not reuseable
at org.java_websocket.client.WebSocketClient.connect(WebSocketClient.java:372)
at org.java_websocket.client.WebSocketClient.reconnect(WebSocketClient.java:315)
......
Environment(please complete the following information):
Describe the bug When I try to reconnect the websocket after the connection unexpected disconnected, the error "java.lang.IllegalStateException: WebSocketClient objects are not reuseable" has occurred. I try to change the thread from main thread to another, but the error still occured.
To Reproduce Steps to reproduce the behavior:
Expected behavior The websocket client can be reconnected normally.
Debug log java.lang.IllegalStateException: WebSocketClient objects are not reuseable at org.java_websocket.client.WebSocketClient.connect(WebSocketClient.java:372) at org.java_websocket.client.WebSocketClient.reconnect(WebSocketClient.java:315) ......
Environment(please complete the following information):