Emits not consistently sending data #1933
Unanswered
sirthomasii
asked this question in
Q&A
Replies: 1 comment 9 replies
-
@sirthomasii what command did you use to start the server? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all (and Miguel),
I have a socketio server running on digitalocean with eventlet. It emits messages to chat rooms (chat_uuid).
I can see that the users are indeed connected to the chat rooms and an emit is made every time, however about 50% of the time, the emit message is not "sending packet data". In the server log I have highlighted in pink an emit event which did not send the data.
I have already confirmed that the data (JSON) is correctly passed to the emit function every time.
socketio.emit("chat_message_sent", socket_data, json=True, to=data['chat_uuid'], callback=message_received)
I have tried adding eventlet monkeypatching to the very beginning of my server app as well as some sleep methods to fix the issue but to no avail. It's worth noting that this was not an issue when I was developing locally, it's only when I moved to a production server that this issue surfaced.
Any advice or help is very much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions