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
Emitting event from server along with the callback and expecting client to trigger callback as the event received to acknowledge the server. Client is getting args[1] as null when is should be a callback.
Steps:
setup "socket.io-client": "^2.0.0" in react just to test if callback is emitting from server, in this test code, callback received.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Problem:
Emitting event from server along with the callback and expecting client to trigger callback as the event received to acknowledge the server. Client is getting args[1] as null when is should be a callback.
Steps:
setup
"socket.io-client": "^2.0.0"
in react just to test if callback is emitting from server, in this test code, callback received.server:
client
server socket.io version
"socket.io": "^2.0.3",
client version
io.socket:socket.io-client:1.0.0
cannot upgrade versions as this is legacy code up and running on prod. Any help would be appreciated. Thanks
Beta Was this translation helpful? Give feedback.
All reactions