Answers for "Exception in thread "main" org.java_websocket.exceptions.WebsocketNotConnectedException"

0

Exception in thread "main" org.java_websocket.exceptions.WebsocketNotConnectedException

The "problem" is the method connect(). This is a non blocking method, which is starting the connection/handshake etc.

If you wanna send a frame right after connecting, please use the method connectBlocking().
This method blocks the thread till the connection is established (or failed).
Posted by: Guest on February-16-2022

Code answers related to "Exception in thread "main" org.java_websocket.exceptions.WebsocketNotConnectedException"

Browse Popular Code Answers by Language