code: def send_message() -> None:
      
      if not _msg_queue:
          return
      msg = json.dumps(_msg_queue)
      _msg_queue.clear()
      for conn in module.connections:
          conn.write_message(msg)
docs: Send message via WS to all client connections.