News for hackers. Stuff that matters.
Re:Open Source Chat Server in Node.js with dynamic rooms by Cushman on Monday May 28, 2012 @03:20AM (#4032335)
You're opening yourself up to a serious race condition by using a global variable ('params') to share state across requests. The delay between the GET and the socket connect could easily be seconds; under load, it will likely be next to impossible to join the right room.

You probably want to use cookies (which socket.io helpfully supplies) for this instead.

Re:Open Source Chat Server in Node.js with dynamic rooms by mlakkadshaw on Monday May 28, 2012 @05:04AM (#4032563)
Thanks, I'll look into it and release a update asap