you could use socket.io which takes a lot of overhead away. you could use zeroMQ or any other queue system to use complex pub sub systems.
You could as well implement your own socket system which is fun too. I guess you should invite the javascript guys (link on the right side) to get a idiomatic answer :)