Closed kitty0109 closed 3 years ago
Hello @kitty0109
Thank you for using this library and reaching me :)
You should ping the server within a specific interval.
https://github.com/WrathChaos/StompClientLib/issues/96#issuecomment-710030428
["heart-beat": "0,10000"] disconnected after certain time but when changed to ["heart-beat": "10000,10000"], did not disconnect and ping is happening at regular intervals, keeping the connection alive.
Here is the current solution.
Please let me know if it is working for you
Hello @kitty0109
Thank you for using this library and reaching me :)
You should ping the server within a specific interval.
["heart-beat": "0,10000"] disconnected after certain time but when changed to ["heart-beat": "10000,10000"], did not disconnect and ping is happening at regular intervals, keeping the connection alive.
Here is the current solution.
Please let me know if it is working for you
It works! Thanks for your reply.
I tried to use STOMP 1.2 on IOS APP with STOMP's heartbeat header:
heart-beat:30000, 0
. But the WebSocket connection closed after 1 minute. PS: this heart-beat header works for Android APP. Could anyone help me check what's going wrong?