Robust web chat service by node.js +

Several months ago I was involved into discussion about the best way to implement realtime light-weight web chat like FB or GTalk right in Web.
In way like Comet or WebSocket. And now I have prety simple but robust solution. I’m talking about node.js +

There is working example (not even pure chat but rather web echo service). To try it you need to install node.js, npm and then by npm. Then just run sudo node echo_server.js and go to http://localhost:8000.

Linux needs root’s privileges to server correctly flash client as bridge (one of transport layers provided by on port 843.

One more interesting feature in this example is auto-scroll-bottom widget on client side like real chat messages box.

Basically, this is just test example or start point to implement real chat service or multiplayer game.



  1. z1 chat said:

    Thank you for the good writeup. It actually used to
    be a enjoyment account it. Look advanced to far brought agreeable from you!
    By the way, how could we be in contact?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: