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
Currently, i am using in my code mySocket.emit("postCreator", post);
this will broadcast to other clients and sender also but i want to broadcast to all other clients only, not the sender. I tried to use below code but its giving me error of mySocket.broadcast is undefined. How can i broadcast to all except the sender with angular-socket-io mySocket.broadcast.emit('postCreator', post);
The text was updated successfully, but these errors were encountered:
Currently, i am using in my code
mySocket.emit("postCreator", post);
this will broadcast to other clients and sender also but i want to broadcast to all other clients only, not the sender. I tried to use below code but its giving me error of mySocket.broadcast is undefined. How can i broadcast to all except the sender with angular-socket-io
mySocket.broadcast.emit('postCreator', post);
The text was updated successfully, but these errors were encountered: