Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broadcast to all except sender #160

Open
MuhammadTalhaAfzal opened this issue Aug 5, 2017 · 0 comments
Open

Broadcast to all except sender #160

MuhammadTalhaAfzal opened this issue Aug 5, 2017 · 0 comments

Comments

@MuhammadTalhaAfzal
Copy link

MuhammadTalhaAfzal commented Aug 5, 2017

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

@MuhammadTalhaAfzal MuhammadTalhaAfzal changed the title Broadcast except sender Broadcast to all except sender Aug 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant