Define two functions:send_msg and broadcast_clients