socket

Get help using Construct 2

Post » Sat Aug 18, 2012 3:47 pm

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
B
11
S
5
G
1
Posts: 53
Reputation: 1,633

Post » Sat Aug 18, 2012 4:23 pm

ehhhmmmm i try to compile my file and put on altervista and when i start the game don't compare again the debug -destroyng non-socket.io upgrade
is cause he's connect?
how can i show on my server if the client is connect?
B
11
S
5
G
1
Posts: 53
Reputation: 1,633

Post » Sat Aug 18, 2012 5:46 pm

close this post i solved
B
11
S
5
G
1
Posts: 53
Reputation: 1,633


Return to How do I....?

Who is online

Users browsing this forum: DiabloOvermind, emoticon, odiusfly, randomly and 19 guests