Hierarchy

Constructors

Properties

Methods

  • Send an answer to server with given data.

    Throws

    if server returns an error

    Parameters

    • type: string

      response type, i.e: 'invitation',...

    • id: string

      request id

    • payload: Body

      response data.

    Returns Promise<Record<string, any>>

  • Create a registry on server.

    Throws

    if server returns an error

    Returns

    resolved with created registry.

    Parameters

    • username: string

      user name to register.

    • token: string

      validation token.

    • __namedParameters: {
          deviceId?: string;
      } = {}
      • Optional deviceId?: string

    Returns Promise<unknown>

  • Send a request to server with given data.

    Throws

    if server returns an error

    Returns

    resolved with server response.

    Parameters

    • type: string

      request type, i.e: 'createRoom', 'invitation',...

    • id: string

      request id

    • body: Body

      requested body.

    • Optional retry: number

      if specified and an id is provided, when an answer is not received for this requested id, message will be send again periodically.

    Returns Promise<Record<string, any>>

Generated using TypeDoc