Skip to content

Client event not received from nodejs socketio server #802

@pluzmedia

Description

@pluzmedia

I can successfully emit to NodeJS socketio from python client by the following code
sio.emit("coords", {"id": rowId})

but emits from the NodeJS sever are not received by python client

NodeJS server code
socket.emit("catch_all", res.id)

Python Client code

@sio.on('catch_all')
def catch_all(data):
    print('message received with ', data)
    sio.emit('coords', {'response': 'my response'})

or

@sio.event
def catch_all(data):
   print('message received with ', data)
   sio.emit('coords', {'response': 'my response'})

Any help?

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