add code for client sending single message to server