Sanity Library Reference Docs
    Preparing search index...

    Function getOrCreateNode

    • Retrieve or create a node to be used for communication between an application and the controller -- specifically, a node should be created within a frame / window to communicate with the controller.

      Nodes are shared by name, so the message types must match the protocol spoken on that name.

      Type Parameters

      • TWindowMessage extends Message = Message
      • TFrameMessage extends Message = Message

      Parameters

      Returns Node<TWindowMessage, TFrameMessage>