Hierarchy

Constructors

Properties

muteChange$: Observable<{
    muted: boolean;
    roomId: string;
    userId: string;
}>
muteRequest$: Observable<{
    muted: boolean;
    roomId: string;
}>

Methods

  • Add participants to a room

    Throws

    if server returns an error

    Returns

    resolved on success with server response.

    Parameters

    • id: string

      room identifier

    • participants: string[]

      list of user names to add to the room

    Returns Promise<unknown>

  • 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>>

  • Request a room creation on server and returns a Room instance

    Throws

    if server returns an error

    Returns

    resolved on success.

    Parameters

    • record: boolean = false

      indicate if room should be recorded

    Returns Promise<RoomDto>

  • Get any room from server where user participates and return a list of Room instances

    Throws

    if server returns an error

    Returns

    resolved with server response.

    Returns Promise<unknown[]>

  • Close a room

    Throws

    if server returns an error

    Returns

    resolved on success with server response.

    Parameters

    • id: string

      room identifier

    Returns Promise<unknown>

  • Indicates users has mute/unmute themselves

    Returns

    raw server response

    Parameters

    • roomId: string

      The UUID of the room where the user is being un/muted.

    • userId: string

      The ID of the user being un/muted.

    • muted: boolean = true

      Whether the user is being muted (true) or unmuted (false)

    Returns Promise<unknown>

  • Request a remote participant to be muted.

    Returns

    raw server response

    Parameters

    • room: string

      The UUID of the room where the conference is taking place.

    • to: string

      The ID of the user to be un/muted.

    • requestedBy: string

      The ID of the user doing the request.

    • muted: boolean = true

      if true requests user to be muted, if false to be unmuted

    Returns Promise<unknown>

  • Remove participants from a room

    Throws

    if server returns an error

    Returns

    resolved on success with server response.

    Parameters

    • id: string

      room identifier

    • participants: string[]

      list of user names to remove from the room

    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>>

  • Start recording a room

    Throws

    if server returns an error

    Returns

    resolved on success with server response.

    Parameters

    • id: string

      room identifier

    Returns Promise<unknown>

  • Stop recording a room

    Throws

    if server returns an error

    Returns

    resolved on success with server response.

    Parameters

    • id: string

      room identifier

    Returns Promise<unknown>

Generated using TypeDoc