Implement server communication with client.