kernl API
    Preparing search index...

    Function bridgesModule

    • The bridges: how the shell reaches a locator, from a web address to a magnet link, as kernl.bridges (D-010, D-017). The kernel's resource service and the person's downloads go through it; without it resource is not offered. Every hand-off to an app on the device goes through the host's openLink, which asks first.

      Parameters

      • options: { registry?: BridgeRegistry; torrent?: TorrentBackend } = {}

        A registry of the host's own, or the torrent engine for kernl's default one.

      Returns KernlModule<"bridges", BridgeRegistry>

      The module; its api is the BridgeRegistry.

      const kernl = createKernl({ host, modules: [bridgesModule({ torrent })] });
      await kernl.bridges.resolve('magnet:?xt=urn:btih:…', { requester: 'shell' });