I am trying to write an integration test in node (not the browser). So, I need to connect two socket clients to the same server..
If i do something like:
var sio = require('socket.io-client');
var s1 = sio.connect("http://localhost:123123");
var s2 = sio.connect("http://localhost:123123");
It seems that they are the same instance or something alike, because the "connect" event is invoked once, and after that the two instances has .socket.connected = true
Is there a way to do this? thanks