joeyak / go-twitch-eventsub

MIT License
3 stars 4 forks source link

Reconnect logic isn't working correctly #3

Closed joeyak closed 1 year ago

joeyak commented 1 year ago

https://dev.twitch.tv/docs/eventsub/handling-websocket-events/#reconnect-message

Note

You should not close the old connection until you receive a Welcome message on the new connection. The old connection receives events up until you connect to the new URL and receive the welcome message.

Don't close old connection till new is done. Need to figure out a way to auto reconnect and just let the client know when reconnect is happening