Added socket.io code.