StompProtocolAndroid
StompProtocolAndroid copied to clipboard
Reconnect error subscribe to topic
First, I connect socket and subscribe topic. Example here:
fun example() {
mStompClient.topic("/topic/example")
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe{
Log.d("listenStomp", topicMessage.getPayload());
timeCount.value=it.payload
}
}
Log console working.
But I turn off internet. Socket disconnect. I turn on internet and reconnect socket. When reconnecting successfully. I recall the example function but log console (listenStomp) not working.
But log message stomp working like that
