Delay of emitting message from frontend to backend #1918
Unanswered
SAIREDDY54
asked this question in
Q&A
Replies: 2 comments
-
Image link |
Beta Was this translation helpful? Give feedback.
0 replies
-
I can't really tell you much with the information that is visible in your picture, but pending requests are normal, those are part of the long polling protocol used by Socket.IO. As a side note, you should configure your server so that it also supports WebSocket, which performs better than long-polling. The picture also shows that your browser has multiple connections to the server, which is very likely a bug in your application and not something you intended. Normally each client start a single Socket.IO connection, not many. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using flask as backend and reactjs as frontend, on button click I am emitting data from frontend to backend but request is delayed and when I inspect the traffic it shows pending. I am serving the frontend on localhost.
Please look into this.
Beta Was this translation helpful? Give feedback.
All reactions