Adding some preliminary socket.io support