On Mar 8, 2013, at 14:44, Russell Holmes wrote:

> User requests page.
> Server sends page to client and stores the socket id in a form.
> The user then posts their username along with the socket id back to the server
> the server then sets the username for the socket id.
> 
> The problem being that when i post back to the server, the socket disconnects.

Sure, if you submit a form on a page, that causes the browser to load a new URL 
into the page. That will disconnect any sockets. If you don't want the socket 
disconnected, don't submit a form that way. Use AJAX instead.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to