You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: for support questions, please use one of these channels: stackoverflow or slack
You want to:
report a bug
request a feature
Current behaviour
emitting an event on the server, if the server makes asynchronous treatment before calling ack, null will be retrived to the client before the server could have a chance to response.
Steps to reproduce (if the current behaviour is a bug)
Other information (e.g. stacktraces, related issues, suggestions how to fix)
I think that the issue is that socket.io probably send back "null" to the client if no listener used the acknoledgment function. I think that the best would be for socket.io to provide an option that would prevent this behaviour in exchange for ensuring that the server will provide an answer, or timeout.
The text was updated successfully, but these errors were encountered:
Note: for support questions, please use one of these channels: stackoverflow or slack
You want to:
Current behaviour
emitting an event on the server, if the server makes asynchronous treatment before calling ack, null will be retrived to the client before the server could have a chance to response.
Steps to reproduce (if the current behaviour is a bug)
client-side
server-side
Expected behaviour
Log "ok" client side
Current result
Log "null" client side
Setup
Other information (e.g. stacktraces, related issues, suggestions how to fix)
I think that the issue is that socket.io probably send back "null" to the client if no listener used the acknoledgment function. I think that the best would be for socket.io to provide an option that would prevent this behaviour in exchange for ensuring that the server will provide an answer, or timeout.
The text was updated successfully, but these errors were encountered: