Documentation
    Preparing search index...

    Function createIdentityProxy

    • Factory for the canonical identity-domain proxy.

      Parameters

      Returns IdentityProxy

      An IdentityProxy ready to route identity.* envelopes

      import { createIdentityProxy, originRegistry, createShellBridge } from '@kehto/shell';

      const bridge = createShellBridge(hooks);
      const identityProxy = createIdentityProxy({
      runtime: bridge.runtime,
      originRegistry,
      });

      // Optional composition: intercept napplet->shell identity requests
      const originalDispatch = identityProxy.dispatch;
      identityProxy.dispatch = (windowId, envelope) => {
      console.log('identity dispatch', windowId, envelope.type);
      originalDispatch(windowId, envelope);
      };