client connects to server and recieves messages
client