i have 2 server
+ server1:
*var io=require('socket.io');

var Socket=io.listen(5555) ;
Socket.set('log level',1);

Socket.sockets.on('connection',function(socket){
    console.log("hello " + socket.id);
    console.log("");
    socket.on('message', function(expr){

    });
    socket.on('disconnect', function(){
        // console.log('Disconnected');
    });
});*
+server 2:
*var io=require('socket.io');

var Socket1=io.listen(6666) ;
Socket1.set('log level',1);

Socket1.sockets.on('connection',function(socket1){
    console.log("hello " + socket1.id);
    console.log("");
    socket1.on('message', function(expr){

    });
    socket1.on('disconnect', function(){
        // console.log('Disconnected');
    });
});*

how can i send and receive data,event,.. between 2 servers,thank you

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to