title: socket.io, How do i know if a socket remains active?
body: <p>I'm giving my firsts steps on node and writing a simple chat app. Every time that nodejs gets a new socket connection it's saved in a simple array... My problem is when a connection is closed, because his reference remains there... <strong>How do i check if a connection is alive before emit any event to her, avoiding crashes?</strong></p>