Wow, so, I might have shut down the whole room by typing in the chat <script>window.close();</script> That room is a giant XSS disaster waiting to happen.
Thanks for fixing it, and sorry about the window.close() thing :P Very cool; its mind-blowing how simple the code is. Can you post some of the server-side code?
I'm going to probably release a NodeJS/Socket.IO version then do a blog post comparing the two and release all of the source code. Should have the Node one up in a day or two.
Nice hack. In case you are using Node.js in the back end, you might want to check out socket.io. Provides Websocket support as well fall back transports for browsers that don't support WS.
Really nice to interact live with strangers like this! I always thought HN guys were a bit more matured, it was funny to see every other 2nd doodle was of a dick!
Firefox 4 Beta 8+ users can enable websockets by toggling network.websocket.override-security-block in about:config. It still doesn't work in the latest nightly, though, as I can't draw anything.
Websockets were disabled in Firefox 4b8+ because of supposed security problems in the protocol.
Doesn't work for me Chrome 9.0.597.98 beta on Ubuntu :( Possibly because all HTTP traffic has to go through a proxy server, the company block all outbound traffic, and require a proxy server.