5 ms·
Isitchristmas.com uses WebSocket and node.JS to allow user interaction
- deleted 14y ago[deleted]
- konklone 14y agoI wrote up a post on the whole architecture here: http://konklone.com/post/the-making-of-isitchristmas-dot-com-2012 http://konklone.com/post/the-making-of-isitchristmas-dot-com...
- ErikAugust 14y agoCool stuff. Cool technology. All kinds of possibilities.
- busted 14y agoThis is a really great writeup, thanks for taking the time.
- mnutt 14y agoVery nice writeup. For the GeoIP part, there are actually libraries that will load up the entire Maxmind database into memory. Though it bloats your node app's memory usage as you would expect, it's extremely fast and almost always worth it. We use this library: https://github.com/kuno/GeoIP https://github.com/kuno/GeoIP
- konklone 14y agoYeah, I'll definitely be doing that next time. Thanks for the tip.
- dhconnelly 14y agoPSA: check out the js console on the main site to send messages to other visitors.
- RaphiePS 14y agowhile (true) { say("foobar"); }
- ben174 14y agome.country = "HELL";
- TazeTSchnitzel 14y agoPlease don't do that. Seeing "HELL.png failed to load" every 5 seconds isn't fun.
- jarrett 14y agoIf you read the page source, you can see how easy it is to write your own chat bot for this app. Just paste the code back in to your JS console (which may not like newlines, FYI). I won't tell you which chat bot was mine :)
- TazeTSchnitzel 14y agox = setInterval(function() {rawSend(JSON.stringify({ _event: "chat", country: "KP", name: "Kim Jong-Un", message: "Die US imperialist scum!" }));}, 250);
- konklone 14y agoyeah....thanks for that.
- jandy 14y agoI love these kind of limited interaction situations, and what behaviour you see coming out of it. I moved around for a minute in a slow deliberate path, and others started following me; then I stopped completely still, and others lined their flags up next to mine in a square. Amusing, and all with no communication.
- huffman 14y agoWhen I was there, all the American flags were just chasing Canada.
- hybrid11 14y agoisitdown.com ?
- deleted 14y ago[deleted]
- omershapira 14y agoJust spent 2 minutes on that site with 6 other people. We're all idiots.
- iKlsR 14y agohaha. ikr, about a dozen of us went over each other and were clicking for abt a min
- Arkeus 14y agoNewline characters make for some interesting spoofing here.
- readme 14y agoYou can forge messages from others: rawSend(JSON.stringify({ _event: "chat", country: "US", name: "Any Guy", message: "expletive deleted" }));
- Zoophy 14y agoIs it possible to move other flags server side by using the following? rawSend(JSON.stringify({ _event: "motion", c: "xx", id: "xxxx", x: 0, y: 0}));