Socket.io Multiple Connections
Strange issue I haven't really found documentation about. I think it may end up being a simple case of 'you don't understand how the product works' and I'm hoping someone can fill
Solution 1:
Try removing the 'new' keyword from the io thing. You shouldn't use 'new' there since it would make new instances every time you reload the page or a new client connects. So, it should look like: Server side:
var io = require('socket.io')(26265);
Client side:
var socket = io('http://localhost:26265');
I think this is what you were looking for.
Post a Comment for "Socket.io Multiple Connections"