Hi,
After some debugging i figured out something weird, a socket connects to 2 different namespaces, for example:
//client side
socket = io.connect("
http://mydomain.com/TYPE_ONE", socketOptions);
//server side
io.of("/TYPE_ONE").on("connect", function(socket){
console.log("Connected to TYPE ONE with id:\t"+
socket.id);
});
io.of("/TYPE_TWO").on("connect", function(socket){
console.log("Connected to TYPE TWO with id:\t"+
socket.id);
});
// debug
Connected to TYPE_ONE with id: 1234
Connected to TYPE_TWO with id: 1234
Any ideas what could be causing this or how to avoid it?
Thanks in advance