python-socketio icon indicating copy to clipboard operation
python-socketio copied to clipboard

sio.emit is unable to emit messages to the frontend

Open zjr10101 opened this issue 2 years ago • 1 comments

Discussed in https://github.com/miguelgrinberg/python-socketio/discussions/1387

Originally posted by 1337235931 September 19, 2024 I created the server with socketio.Server(), but after I called the function method in the while loop or if test, I used the sio.emit() method to send a message to the client, but the client could not receive the message from the server. I am sure the sio.emit() code passed. Even with a breakpoint in front of sio.emit(), the client still won't receive the message. I'm not sure if the server-side sio.emit didn't send the message or if the client didn't receive the message.

zjr10101 avatar Sep 19 '24 03:09 zjr10101

Please don't spam the issues board. One question in the discussions board is enough.

miguelgrinberg avatar Sep 19 '24 07:09 miguelgrinberg