Class RelayMap

A collection of relay servers an endpoint should consider.

Constructors

Methods

  • Check whether the given relay URL is in the map.

    Parameters

    • url: string

    Returns boolean

  • True if the map has no relays.

    Returns boolean

  • Number of relays in the map.

    Returns number

  • Remove the entry for the given relay URL. Returns true if removed.

    Parameters

    • url: string

    Returns boolean

  • Clean string representation.

    Returns string

  • All relay URLs currently in the map.

    Returns string[]