Skip to content

Missing ws argument in _on_open callback #36

Description

@edwinofsakh

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions