basic chat client connection establishment