PythonPusherClient
PythonPusherClient copied to clipboard
Missing ws argument in _on_open callback
I got next errors when I try to use last version of websocket (0.56.0):
error from callback <bound method Connection._on_open of <Connection(Thread-8, started daemon 14424)>>: _on_open() missing 1 required positional argument: 'ws'
error from callback <bound method Connection._on_message of <Connection(Thread-8, started daemon 14424)>>: _on_message() missing 1 required positional argument: 'message'
It works good if I downgrade websocket-client to version 0.48.0.
It seems like according to recent changes of websocket-client, the callback function does not receive WebSocketApp instance if it is a method of any class.