gizmo385 / discord.clj

A Clojure library for creating Discord bots
MIT License
45 stars 14 forks source link

Fix reconnect failing #25

Closed bjagg closed 3 years ago

bjagg commented 3 years ago

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.

bjagg commented 3 years ago

Fixes #20