Open dimonik opened 7 years ago
Try
mStompClient.send(stomp_p2p_channel, msg_body).subscribe();
Thank you, this work!
But, could you explain why client need to subscribe for each sent message?
send
returns an Observable, which means it shouldn't do anything unless subscribed to. If you don't know what an Observable is, read this.
If I do this
and immediately following with
then message is sent successfully.
If i do sending one more time (after 5 sec)
the message is NOT sent, despite connection is still alive.
Bug?