StompProtocolAndroid icon indicating copy to clipboard operation
StompProtocolAndroid copied to clipboard

Reconnect error subscribe to topic

Open hoi-nx opened this issue 6 years ago • 0 comments

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 Screen Shot 2019-04-09 at 2 54 07 PM

hoi-nx avatar Apr 09 '19 07:04 hoi-nx