Class MockPeerAbstract

Hierarchy (view full)

Constructors

Accessors

  • get didPeerCloseConnection(): boolean
  • Returns boolean

Methods

  • Parameters

    • error: Error

    Returns void

  • Parameters

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

    Returns void

  • Send ping to peer and return ping data.

    Parameters

    • Optionaldata: Buffer

    Returns Buffer

  • Send pong to peer.

    Parameters

    • data: Buffer

    Returns void

  • Returns undefined | Data

  • Returns Promise<Data>

  • Parameters

    • message: Data

    Returns Promise<void>