Finish integrating socket.io