add method that send message to client.