File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 3636 - Websocket automatically handles "RECONNECT" requests by Twitch
3737 - Bug fixes
3838 - Unsubscribing from Pubsubevents works again
39+ - Fix a forgotten nonce in :func: `~twitchio.ext.pubsub.websocket._send_topics `
3940
4041- ext.sound
4142 - Bug fixes
Original file line number Diff line number Diff line change @@ -119,7 +119,11 @@ async def _send_initial_topics(self):
119119 async def _send_topics (self , topics : List [Topic ], type = "LISTEN" ):
120120 for tok , _topics in groupby (topics , key = lambda val : val .token ):
121121 nonce = ("%032x" % uuid .uuid4 ().int )[:8 ]
122- payload = {"type" : type , "data" : {"topics" : [x .present for x in _topics ], "auth_token" : tok }}
122+ payload = {
123+ "type" : type ,
124+ "nonce" : nonce ,
125+ "data" : {"topics" : [x .present for x in _topics ], "auth_token" : tok },
126+ }
123127 logger .debug (f"Sending { type } payload with nonce '{ nonce } ': { payload } " )
124128 await self .send (payload )
125129
You can’t perform that action at this time.
0 commit comments