kernl API
    Preparing search index...

    Function createAppletTraffic

    • Report what this shell's applets send and receive, for the windows owns accepts. Window ids are counted per shell, so two shells on one page can both have an applet-1 and would each hear the other's; a host runs one shell per page.

      Parameters

      • owns: (windowId: string) => boolean

        Whether a window belongs to this shell.

      Returns AppletTraffic

      The stream and the hooks that feed it.

      const traffic = createAppletTraffic((windowId) => handles.has(windowId));
      traffic.traffic$.subscribe((message) => log.push(message));