websocket-client
websocket-client copied to clipboard
Clearing sending channels when reconnecting to the server.
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.
Good point, I will create a method to clear the sending queue