Implement proxy that handles communication from the client to the server.