lahsivjar / react-stomp

React websocket component for STOMP protocol over SockJs
https://www.npmjs.com/package/react-stomp
MIT License
135 stars 41 forks source link

onMessage did not trigger after switching wifi network #125

Closed sahar922 closed 5 years ago

sahar922 commented 5 years ago

Hi there, I'm using the latest version of react-stomp 4.1.1, Lately, I've encountered an issue to keep WebSocket messages coming through onMessage, but I found that after the network connection is resetting, whether because I switched WIFI network, or just lost WIFI connection for a couple of seconds - the onMessage won't be triggered anymore.

Just to clarify - the socket itself does re-connect after the connection lost, I can see the heartbeat and the incoming messages in the network tab (chrome developers tools), but as I said - the onMessage did not trigger, although the messages did come.

any thoughts what can cause it, or how can I solve it?

Thanks!

lahsivjar commented 5 years ago

@sahar922 Can you post some logs or network captures?

lahsivjar commented 5 years ago

Closing due to inactivity, reopen if needed