Re: [nodejs] Uniquely identify a socket

2012-05-17 Thread Veeru
Ok, one question here, am setting a cool_id to the socket, then later on how can i retrieve this socket from another socket. i.e i want to send a message from a socket to this particular socket. how to do that? On Tuesday, 29 November 2011 03:32:24 UTC+5:30, Jann Horn wrote: > > 2011/11/28 JoeZ9

Re: [nodejs] Uniquely identify a socket

2012-05-17 Thread Matthew Hazlett
// global scope var connection = 0; // on connection socket['cool_id'] = connection; connection++; Could you just do something as simple as this? On 5/17/2012 8:33 AM, Veeru wrote: Ok, one question here, am setting a cool_id to the socket, then later on how can i retrieve this socket from anot