Options
All
  • Public
  • Public/Protected
  • All
Menu

Class default

Hierarchy

Constructors

Methods

Constructors

constructor

Methods

deserialize

  • deserialize(message: any, batch?: boolean): any
  • Deserializes an existing object to a message. This method verifies that the object conforms to the JSON-RPC 2.0 specification

    Parameters

    • message: any

      The message to deserialize.

    • batch: boolean = false

      Indicates if the message may be a batch request (array of messages).

    Returns any

serialize

  • serialize(object: any): string | Uint8Array
  • Serializes an object to either binary or a string.

    Parameters

    • object: any

      Object to be serialized.

    Returns string | Uint8Array

Generated using TypeDoc