StompProtocolAndroid icon indicating copy to clipboard operation
StompProtocolAndroid copied to clipboard

How to add heart-beat?

Open Le0nHsu opened this issue 7 years ago • 2 comments

after 1 min,the websocket goes error ,so I want to add a heart-beat in my project,what should i do

Le0nHsu avatar Aug 31 '18 08:08 Le0nHsu

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.

forresthopkinsa avatar Aug 31 '18 17:08 forresthopkinsa

How to do it?

qianmang2 avatar Jun 18 '19 02:06 qianmang2