Implements working socket.io chat