example chat application with socket.io