Documentation
    Preparing search index...

    Function createSessionRegistry

    • Create a new SessionRegistry instance.

      Parameters

      • Optionalnotifier: PendingUpdateNotifier

        Optional callback invoked when pending updates change

      • OptionalonRegister: (windowId: string) => void

        Optional host callback invoked for each fresh registration, including replacement of the same windowId

      Returns SessionRegistry

      A SessionRegistry instance

      const registry = createSessionRegistry((windowId) => {
      console.log('Pending update changed for', windowId);
      });