I think socket.io has some good docs somewhere.