Factorize code to send client status update.