Arc.React
    Preparing search index...

    Function useSendMessage

    • Returns a stable function for publishing messages to the nearest MessengerScope (or the Arc root messenger when no local scope is present).

      Use useOnMessage for subscribing inside components.

      Returns <TMessage extends object>(message: TMessage) => void

      A function that publishes the supplied message to the resolved messenger.