162
rated 0 times
[
169]
[
7]
/ answers: 1 / hits: 29413
/ 11 Years ago, thu, may 23, 2013, 12:00:00
I have a socket id of a connection. Can I get the status of that connection, inside the function handler of another one?
Something like this:
io.sockets.on('connection', function(socket) {
/* having the socket id of *another* connection, I can
* check its status here.
*/
io.sockets[other_socket_id].status
}
Is there a way to do so?
More From » node.js