More Node.js + Comet Tomfoolery

Wednesday, April 28th, 2010 | code, development, javascript, nerdery, node.js

I know there have been quite a few people out there that have messed around with node and comet already, but I figured I’d give it a go perhaps if only to familiarize myself more with the awesomeness that is node.js. I was originally inspired by this post on Ajaxian, so you’ll notice that I too am basing this off of Faye’s implementation of the Bayeux protocol for publish/subscribe. Only real difference is that in my example, messages are passed to the client via stdin.

Here’s the code: http://github.com/eculver/node_comet

I also read in a few other places where people were using fs.watchFile or node’s process.createChildProcess to create a public activity log of sorts. Maybe I’m just a nerd, but it would be kind of cool to go to a high-trafficked site and see some of the server log data (origin, user-agent, etc) in real-time. Something to that effect.

Share The Wealth:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Reddit
  • Slashdot
  • StumbleUpon

Tags: , ,

2 Comments to More Node.js + Comet Tomfoolery

DaElisione Malina
March 26, 2011

Howdy would you mind letting me know which web host you’re utilizing? I’ve loaded your blog in 3 completely different internet browsers and I must say this blog loads a lot faster then most. Can you suggest a good internet hosting provider at a honest price? Thanks a lot, I appreciate it!

evan
March 26, 2011

Right now, I’m hosted on Hostmonster. I’ve never had an issue and, you’re right, they do provide pretty low latency when it comes to simple blog hosting. Slicehost (now Rackspace) is also great. All of my clients are hosted there.

Leave a comment