Use socket.disconnect() to temporarily disconnect and then
socket.reconnect() to reconnect On Sun, Jul 29, 2012 at 9:26 AM, Ket <[email protected]> wrote: > Hi, > > In socket.io, I've used *socket.close();* to close connection with the > server, but it shut down connection for good even I refresh the page. > > How do I re-establish the connection like pushing a reset button and get > reconnection? > > Thanks > > -- > 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 > -- 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
