kernl API
    Preparing search index...

    Function createRelayPoolLike

    • Adapt the shared applesauce RelayPool to kehto's RelayPoolLike.

      Parameters

      Returns RelayPoolLike

      An object kehto's RelayPoolHooks.getRelayPool can return.

      const like = createRelayPoolLike(pool);
      like.subscription(['wss://relay.example'], [{ kinds: [1] }]).subscribe((item) => {});