Skip to content

Commit

Permalink
Merge v2.9.1 into master (#444)
Browse files Browse the repository at this point in the history
* refactor eventsubws subscription error handling to not error on reconnect

* potential fix for bug with headers not getting set after token updates

* Revert "refactor eventsubws subscription error handling to not error on reconnect"

This reverts commit bdb21b0.

* formatting

* changelog entry for both prs

* add more changelogs

* refactor eventsubws subscription error handling to not error on reconnect (#439)

* refactor eventsubws subscription error handling to not error on reconnect

* Why do we still support 3.7

* formatting

* Add new API routes (#441)

* Add new API routes

* add docs

* Add user emote endpoint

* work around bad frame disconnect

* run black

* actually restart on bad frame

* Update changelog.rst
  • Loading branch information
IAmTomahawkx committed Mar 24, 2024
1 parent 6cf71e4 commit cac4353
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
:orphan:

2.9.1
=======
- ext.eventsub
- Bug fixes
- fix: Special-cased a restart when a specific known bad frame is received.


2.9.0
=======
- TwitchIO
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

on_rtd = os.environ.get("READTHEDOCS") == "True"
project = "TwitchIO"
copyright = "2023, TwitchIO"
copyright = "2024, TwitchIO"
author = "PythonistaGuild"

# The full version, including alpha/beta/rc tags
Expand Down
4 changes: 2 additions & 2 deletions twitchio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
__title__ = "TwitchIO"
__author__ = "TwitchIO, PythonistaGuild"
__license__ = "MIT"
__copyright__ = "Copyright 2017-2022 (c) TwitchIO"
__version__ = "2.8.2"
__copyright__ = "Copyright 2017-present (c) TwitchIO"
__version__ = "2.9.1"

from .client import Client
from .user import *
Expand Down
2 changes: 1 addition & 1 deletion twitchio/ext/eventsub/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ async def pump(self) -> None:
except TypeError as e:
logger.warning(f"Received bad frame: {e.args[0]}")

if e.args[0] is None: # websocket was closed, reconnect
if "257" in e.args[0]: # websocket was closed, reconnect
logger.info("Known bad frame, restarting connection")
await self.connect()
return
Expand Down

0 comments on commit cac4353

Please sign in to comment.