How do I know when I am connected to the server?