forresthopkinsa / StompProtocolAndroid

Websockets on Android
MIT License
11 stars 4 forks source link

After the connection close, the reconnect method dosn't work ! #11

Open HosseinDevPro opened 4 years ago

HosseinDevPro commented 4 years ago

Hello I implement the library and use JWS for connection type, when the connection closed by server, we call the reconnect method but it dose not work .

when the server close the connection we receive this Logs: 12-16 15:42:31.076 32301-32380/ir.aves.smarthome D/WebSocketsConnectionProvider: onClose: code=1006 reason= remote=true 12-16 15:42:31.076 32301-32380/ir.aves.smarthome D/AbstractConnectionProvider: Emit lifecycle event: CLOSED 12-16 15:42:31.076 32301-32380/ir.aves.smarthome D/ir.aves.smarthome.network.connection.stomp.StompManager: Stomp connection closed

and also when we try to reconnect after it, we receive this Log: 12-16 15:42:37.970 32301-32403/ir.aves.smarthome D/WebSocketsConnectionProvider: onClose: code=-1 reason= remote=false 12-16 15:42:37.971 32301-32403/ir.aves.smarthome D/AbstractConnectionProvider: Emit lifecycle event: CLOSED 12-16 15:42:37.971 32301-32403/ir.aves.smarthome D/ir.aves.smarthome.network.connection.stomp.StompManager: Stomp connection closed