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);
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);