Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Reply

A reply represents a recipients response to a corresponding method with the same id. It can contain a result or an error indicating that the method failed.

Hierarchy

  • Reply

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

error

An error which if present indicates that a method call failed.

id

id: number

A unique id for this reply, which must match the id of the method it is a reply for.

result

result: IRawValues

The result of this method call.

type

type: "reply" = "reply"

Methods

Static fromError

Static fromSocket

  • fromSocket(message: any): Reply
  • Constructs a reply packet from raw values coming in from a socket.

    Parameters

    • message: any

    Returns Reply

Generated using TypeDoc