Was seeing a lot of 1006: Disconnected messages and stopped the bot. Added handlers for reconnect and invalidate-session and added conditional restarting of gateway websocket on 1006: Disconnected
Not sure if this is the correct way to handle a disconnect/reconnect, but my bot continues working.
Was seeing a lot of
1006: Disconnected
messages and stopped the bot. Added handlers forreconnect
andinvalidate-session
and added conditional restarting of gateway websocket on1006: Disconnected
Not sure if this is the correct way to handle a disconnect/reconnect, but my bot continues working.