Send/receive messages from client.