Skip to content

Never broadcast without a namespace #8

Description

@athoune

https://github.com/reveal/multiplex/blob/master/client.js#L8

// ignore data from sockets that aren't ours
if (data.socketId !== socketId) { return; }

Please, never do that : you're broadcasting messages for everybody, and ask clients for not listening what the others are shouting.

See https://socket.io/docs/v3/server-api/#server-of-nsp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions