Archive

Tag Archives: socket.io

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 + socket.io.

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 socket.io 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 socket.io) 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.

 

 

Advertisements