websocket-client icon indicating copy to clipboard operation
websocket-client copied to clipboard

Clearing sending channels when reconnecting to the server.

Open oneprofittips opened this issue 1 year ago • 1 comments

When connecting again, you need to clear all sending channels. At the moment, if the connection is broken, messages accumulate in a queue, and as soon as the client reconnects, all messages from the queue begin to be sent to the server. But when you reconnect, these messages are no longer relevant, and the server bans you.

oneprofittips avatar Feb 01 '24 18:02 oneprofittips

Good point, I will create a method to clear the sending queue

Marfusios avatar Feb 14 '24 15:02 Marfusios