StompProtocolAndroid
StompProtocolAndroid copied to clipboard
How to add heart-beat?
after 1 min,the websocket goes error ,so I want to add a heart-beat in my project,what should i do
You can add a heartbeat header with the corresponding method on StompClient.
However, there isn't any actual heartbeat logic, so if you want that, you'll have to implement it yourself.
How to do it?