hi all.
i write this simple server
var http = require('http');
var io = require('socket.io').listen(1234);
console.log('in attesa di connessioni')
io.sockets.on('connection', function(socket) {
socket.on('Echo test', function(data) {
socket.listen(1234, '127.0.0.1')
console.log('entrato')
});
});
when i try to connect my game with
on start layout socket connect 127.0.0.1 port 1234 and run the game the server write this
debug - destroyng non-socket.io upgrade
how can i connect my game to server