RoomApi - object-oriented interface

Export

RoomApi

Hierarchy

  • BaseAPI
    • RoomApi

Constructors

  • Parameters

    • Optional configuration: Configuration
    • basePath: string = BASE_PATH
    • axios: AxiosInstance = globalAxios

    Returns RoomApi

Properties

axios: AxiosInstance = globalAxios
basePath: string = BASE_PATH
configuration: undefined | Configuration

Methods

  • Parameters

    • roomId: string

      Room ID

    • Optional addComponentRequest: AddComponentRequest

      Component config

    • Optional options: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<ComponentDetailsResponse, any>>

    Summary

    Creates the component and adds it to the room

    Throws

    Memberof

    RoomApi

  • Parameters

    • roomId: string

      Room id

    • Optional addPeerRequest: AddPeerRequest

      Peer specification

    • Optional options: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<PeerDetailsResponse, any>>

    Summary

    Create peer

    Throws

    Memberof

    RoomApi

  • Parameters

    • roomId: string

      Room ID

    • id: string

      Component ID

    • Optional options: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Delete the component from the room

    Throws

    Memberof

    RoomApi

  • Parameters

    • roomId: string

      Room ID

    • id: string

      Peer id

    • Optional options: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Delete peer

    Throws

    Memberof

    RoomApi

  • Parameters

    • roomId: string

      Room id

    • Optional options: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Delete the room

    Throws

    Memberof

    RoomApi

  • Parameters

    • Optional options: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<RoomsListingResponse, any>>

    Summary

    Show information about all rooms

    Throws

    Memberof

    RoomApi

  • Parameters

    • roomId: string

      Room ID

    • Optional options: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<RoomDetailsResponse, any>>

    Summary

    Shows information about the room

    Throws

    Memberof

    RoomApi

  • Parameters

    • roomId: string

      Room ID

    • componentId: string

      Component ID

    • Optional subscriptionConfig: SubscriptionConfig

      Subscribe configuration

    • Optional options: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Subscribe component to the tracks of peers or components

    Throws

    Memberof

    RoomApi