Documentation
    Preparing search index...

    Function createNotifyProxy

    • Factory for the canonical notify-domain proxy.

      Parameters

      Returns NotifyProxy

      A NotifyProxy ready to route notify.* envelopes

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

      const bridge = createShellBridge(hooks);
      const notifyProxy = createNotifyProxy({
      runtime: bridge.runtime,
      originRegistry,
      });

      // Shell-UI notifies napplet that user clicked its toast:
      notifyProxy.emit('win-chat', {
      type: 'notify.clicked',
      notificationId: 'shell-42',
      });