Class SimpleConnectionPoolExperimental

Hierarchy

  • SimplePool
    • SimpleConnectionPool

Implements

Constructors

  • Experimental

    Returns SimpleConnectionPool

Properties

relays: Map<string, AbstractRelay>
seenOn: Map<string, Set<AbstractRelay>>
trackRelays: boolean
trustedRelayURLs: Set<string>
verifyEvent: ((event: Event) => event is VerifiedEvent)

Methods

  • Experimental

    Parameters

    • relays: string[]

    Returns void

  • Experimental

    Returns void

  • Experimental

    Parameters

    • url: string
    • Optionalparams: {
          connectionTimeout?: number;
      }
      • OptionalconnectionTimeout?: number

    Returns Promise<AbstractRelay>

  • Experimental

    Parameters

    • relays: string[]
    • filter: Filter
    • Optionalparams: Pick<SubscribeManyParams, "id" | "maxWait">

    Returns Promise<null | Event>

  • Experimental

    Returns Map<string, boolean>

  • Experimental

    Parameters

    • relays: string[]
    • event: Event

    Returns Promise<string>[]

  • Experimental

    Parameters

    • relays: string[]
    • filter: Filter
    • Optionalparams: Pick<SubscribeManyParams, "id" | "maxWait">

    Returns Promise<Event[]>

  • Experimental

    Parameters

    • relays: string[]
    • filters: Filter[]
    • params: SubscribeManyParams

    Returns SubCloser

  • Experimental

    Parameters

    • relays: string[]
    • filters: Filter[]
    • params: Pick<SubscribeManyParams,
          | "id"
          | "onclose"
          | "onevent"
          | "maxWait">

    Returns SubCloser

  • Experimental

    Parameters

    • requests: {
          [relay: string]: Filter[];
      }
      • [relay: string]: Filter[]
    • params: SubscribeManyParams

    Returns SubCloser