-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
You want to:
- report a bug
Current behaviour
As documentation says, to connect to namespace i should use:
var socket = io('/my-namespace');
But since io (or connect) method is global I can't specify on which socket I want to connect to namespace. For example:
var firstSocket = io('localhost');
var secondSocket = io('localhost');
var namespace = io('localhost/myNamespace');
I can't define if myNamespace connection should go through first or second socket.
Expected behaviour
I think it should be like that:
var firstSocket = io('localhost');
var secondSocket = io('localhost');
var firstSocketNamespace = firstSocket.connectNamespace('myNamespace');
var secondSocketNamespace = secondSocket.connectNamespace('myNamespace');
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels