boumba100 / android-stomp-websocket

Android STOMP client library via websocket connection
11 stars 2 forks source link

Sending CONNECT Stomp command before setting isWebSocketConnected to true #5

Open siddheshshirsat opened 4 years ago

siddheshshirsat commented 4 years ago

In the WebSocketClient::onOpen method , connectStomp() is called before setting isWebSocketConnected to true which prevents the CONNECT Stomp message from being sent.

This results in subscriptions not working correctly.

Relevant code: https://github.com/boumba100/android-stomp-websocket/blob/master/wstompclient/src/main/java/nbouma/com/wstompclient/implementation/StompClient.java#L91-L107