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
Hello! I’m wondering what the difference is between socket.emit() and server.emit() in Socket.IO. I know that socket.broadcast.emit() sends a message to all clients except the one that triggered the event, but I’m not completely sure how socket.emit() and server.emit() differ in practice?
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I’m wondering what the difference is between socket.emit() and server.emit() in Socket.IO. I know that socket.broadcast.emit() sends a message to all clients except the one that triggered the event, but I’m not completely sure how socket.emit() and server.emit() differ in practice?
Beta Was this translation helpful? Give feedback.
All reactions