Skip to content

Broadcast to all except sender #160

Open
@MuhammadTalhaAfzal

Description

@MuhammadTalhaAfzal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions