Skip to content

Invalid number of arguments to _on_open and _on_message callbacks #38

@squgeim

Description

@squgeim

When trying to implement a simple script following the given example the following errors are shown:

error from callback <bound method Connection._on_open of <Connection(PysherEventLoop, started daemon 123145544798208)>>: _on_open() takes 1 positional argument but 2 were given
error from callback <bound method Connection._on_message of <Connection(PysherEventLoop, started daemon 123145544798208)>>: _on_message() takes 2 positional arguments but 3 were given
Connection: Connection closed

When checking out the documentation for websocket-client, the implementation given in its example does not seem to match the implementation in connection.py.

Pysher version: 1.0.1 (installed with pip)
websocket-client version: 0.52.0
Python version: 3.7.0
OS: Mac OS X (Mojave)

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