Send messages to client through intermediate function.