Hierarchy (view full)

Constructors

Accessors

  • get didPeerCloseConnection(): boolean
  • Returns boolean

Methods

  • Parameters

    • code: number = 1005
    • Optionalreason: string | Buffer

    Returns void

  • Send ping to peer and return ping data.

    Parameters

    • Optionaldata: Buffer

    Returns Buffer

  • Type Parameters

    • T

    Parameters

    • clientPromise: Promise<T>
    • OptionalserverImplementation: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    Returns Promise<T>