Options
All
  • Public
  • Public/Protected
  • All
Menu

Class default

Hierarchy

Constructors

constructor

Properties

Protected Readonly axios

axios: AxiosInstance

Protected Optional Readonly config

Protected maxRetry

maxRetry: number = 2

Protected serializer

serializer: default

Methods

defaultConfig

Protected newClient

  • Parameters

    Returns AxiosInstance

send

  • send(data: any): Promise<AxiosResponse<any, any>>
  • This method will be used to send a Message to the server, using the serializer, via the underlying protocol.

    async

    Parameters

    • data: any

      The message to send to the server.

    Returns Promise<AxiosResponse<any, any>>

    • A Promise that will resolve when the message has been sent.

Static uniqueId

  • uniqueId(): Uint8Array
  • Generates a unique id that can be used to distinguish between connected clients. The unique id will be a UUID v4 returned as a Uint8Array.

    Returns Uint8Array

Generated using TypeDoc