Documentation
    Preparing search index...

    Function isAllowedMockRelay

    • Whether an explicit relay URL passes the mock's publish policy.

      Parameters

      • url: string

        Candidate relay URL.

      Returns boolean

      true for public ws(s):// URLs.

      isAllowedMockRelay('wss://relay-a.example.org') === true;
      isAllowedMockRelay('ws://127.0.0.1:7777') === false;