We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07fdbf5 commit 169cb07Copy full SHA for 169cb07
firebase.py
@@ -43,9 +43,10 @@ def run(self):
43
self.sse = ClosableSSEClient(self.URL)
44
for msg in self.sse:
45
msg_data = json.loads(msg.data)
46
+ msg_event = msg.event
47
if msg_data is None: # keep-alives
48
continue
- self.function(msg_data)
49
+ self.function((msg.event, msg_data))
50
except socket.error:
51
pass # this can happen when we close the stream
52
except KeyboardInterrupt:
0 commit comments