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?
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
or
Any help?