Added socket.io functionality, some of which really works