Send/receive messages from server.