You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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');
The text was updated successfully, but these errors were encountered:
You want to:
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');
The text was updated successfully, but these errors were encountered: