Open Source Chat Server in Node.js with dynamic rooms
chat.techcentroid.com
chat.techcentroid.com
Any tips or explanations would be most welcome.
Beyond that: using Nginx to serve any static assets (http://stackoverflow.com/questions/5009324/node-js-nginx-and...) and standard stuff like making sure everything's cached that should be, load balancing, etc.
Handling your state in memory is fine for examples such as this, but in general you should defer all state to the database layer or use something like redis. That way your app server will remain entirely stateless so any node.js process on any box can serve a request identically - you can just scale up by adding additional boxes.
<IMG """><SCRIPT>alert("XSS")</SCRIPT>">
It's hard to tell.. Not sure if I am just running javascript on my machine.. It's very laggy.
Edit: Looks like it is fixed now.
You probably want to use cookies (which socket.io helpfully supplies) for this instead.