On Apr 20, 7:10 pm, mscdex <msc...@gmail.com> wrote: > On Apr 20, 6:43 pm, steven loe <steven....@gmail.com> wrote: > > > However, if the network were to have a problem (for instance someone > > unplugs and replugs an ethernet cable on the client computer). The socket > > connection is broken, but the server does not get an 'end' 'close' or other > > event that I can see. > > What about listening for the 'error' event and/or checking if the > 'writable' property of the socket is set to false?
Additionally, you may want to think about sending some kind of heartbeat/ping message every so often. -- 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en