kernl API
    Preparing search index...

    Function createAppletRelayService

    • kehto's relay service over the shared pool, with publishes planned by the event's kind.

      kehto plans every relay operation before it runs and then publishes only to the planned relays (publishToRelays), but its publish plan cannot see the event. kernl's plan does, so a profile update is planned onto discovery relays and the user's own, and a note onto the outbox plus the super tier, as before. An applet's explicit relay hint is planned as kehto plans it.

      Parameters

      • pool: ApplesaucePool

        The shared applesauce pool.

      • tiers: RelayTiers

        Relay tiers used to route publishes and unhinted subscriptions.

      Returns RelayPlanningServiceHandler

      The relay service handler.

      registry.relay = createAppletRelayService(pool, tiers);
      registry.relay.planRelayOperation('w1', { type: 'relay.publish', id: '1', event: { kind: 0 } }).relayUrls;