Fix #23: Use event instead of message
This commit is contained in:
parent
e9658aae73
commit
eef5d288c3
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class Events(StreamingAPI):
|
|||
return
|
||||
|
||||
if self.message_handler:
|
||||
self.message_handler(message)
|
||||
self.message_handler(event)
|
||||
|
||||
def _on_error(self, ws, e):
|
||||
if isinstance(e, websocket._exceptions.WebSocketBadStatusException) and getattr(e, "status_code") == 401:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue