Teekeks / pyTwitchAPI

A Python 3.7 compatible implementation of the Twitch API, EventSub, PubSub and Chat
https://pytwitchapi.dev
MIT License
256 stars 38 forks source link

Cleanly handle RECONNECT event in Chat #169

Closed Teekeks closed 1 year ago

Teekeks commented 1 year ago

Currently, the RECONNECT event is ignored and on a disconnect the websocket just disconnects.

Use the event to manually reconnect for a cleaner state handling.

Docs: https://dev.twitch.tv/docs/irc/commands#reconnect