kernl API
    Preparing search index...

    Function webTrackers

    • Keeps the link's reachable trackers ahead of the defaults, without duplicates.

      Parameters

      • trackers: readonly string[]

        Trackers from the link.

      • defaults: readonly string[] = DEFAULT_WEBRTC_TRACKERS

        Trackers always announced to.

      Returns readonly string[]

      The wss:// trackers to announce to.

      webTrackers(['udp://t.example:80', 'wss://t.example'], ['wss://d.example']);
      // ['wss://t.example', 'wss://d.example']