On Dec 26, 2012, at 02:10, ayaz ali wrote: > i have made an chat application using socket.io and express js working fine. > problem is that when client reset the browser
You mean when the user presses the browser's Reload button? > the connection is disconnected and ask to reconnect how to handle this > situation i want to only disconnect when client close browser. I doubt you can change that. The browser will disconnect the socket when the page is unloaded or reloaded. You'll have to program your app to gracefully handle that situation—or maybe not: why would the user be reloading the page? You could tell the user not to do that if they want to stay in the chat. -- 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
