PythonPusherClient icon indicating copy to clipboard operation
PythonPusherClient copied to clipboard

Missing ws argument in _on_open callback

Open edwinofsakh opened this issue 6 years ago • 0 comments

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.

Recent changes of websocket-client

edwinofsakh avatar Aug 26 '19 14:08 edwinofsakh