lahsivjar / react-stomp

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

Getting "Unhandled received MESSAGE: MESSAGE" sometimes in react app #146

Closed ankitmblock closed 4 years ago

ankitmblock commented 4 years ago

When I am implementing react-stomp, and subscribe to different topic on different pages then getting following error on switching different pages


destination:/topic/test
content-type:text/plain;charset=UTF-8
subscription:sub-0
message-id:2fsfejst-972
content-length:38

{"id":28,"name":"abc"}�
stomp.js:155 Unhandled received MESSAGE: MESSAGE
content-length:38
message-id:2fsfejst-972
subscription:sub-0
content-type:text/plain;charset=UTF-8
destination:/topic/test
content-length:38```