Hello, Yes i could do that and save the data before the disconnect, but i hope with a hight trafic, one new connection by view will not hurts the server.
thanks ! 2012/7/27 Angel Java Lopez <[email protected]> > Backbone behavior is independent of server-side language choice, in > general. > > But I didn't grasp one thing, yet: > > Why you want not to lost the socket? Use case? > > Maybe, you can REOPEN the socket in the new page, and associate the new > socket with something, like a "room name" or something else. But, depending > on the use case/implementation, you may lost some messages between the > close of the page 1 socket and the open of the page 2 socket. > > "I create a socket" means: > - I create a socket at client side, againts what at server side? > > Apparently, there are many clients consuming the same socket traffic. > > But wo/the use case, I'm not sure. > > Angel "Java" Lopez > http://ajlopez.wordpress.com > http://twitter.com/ajlopez > > > On Thu, Jul 26, 2012 at 6:31 AM, Ludo <[email protected]> wrote: > >> Hello, >> >> I am building a website with nodeJS. The goal is the user launch a >> session when he logs his account (so i create a socket), but i am looking >> for the best way to keep this socket (on the client side) all along the >> navigation. >> >> For exemple, if the user go from "monsite.com/login.php" to >> monsite.com/home.php i am going to loose the socket which i created in " >> monsite.com/login.php"... >> >> How would you do that ? Is it really appropriate to work with PHP ? >> Because i think you don't have this kind of problem with a website build >> with a JS Framework like Blackbone.js ! >> >> Thanks for your advices ! >> >> -- >> 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 > -- *Ludovic VUE* EPITECH - Promo 2014 Chef de projet de MusicOnLive Développeur Web chez Moozar <http://moozar.com> +33 (0)6 07 29 63 27 -- 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
