Client can connect to server and send and receieve messages