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

Increase In Number Of Open Connections After a Reconnection #197

Open omercelikceng opened 3 years ago

omercelikceng commented 3 years ago

Hello, I tried to review the code. For example if an error is received regarding the connection, a re-connection request is sent periodically. And if any of them are connected, sending re-connection request is stopped. However, the point I noticed is that if more than one of the sent requests is connected, the connection becomes multiple. My question is, in the end, shouldn't only one connection be kept (other connections should be closed) as in initial state?

DIVANSHMAHAJAN commented 2 years ago

I have also faced a similar issue. Multiple notification are recieved for single message. Plz tell how to solve this issue.I think it is because of the reconnections taking place as a result of which a client ends up recieving multiple notifications for a single message..