The CallingClient module provides a set of APIs for line registration and calling functionalities within the SDK.

The following code snippet demonstrates how to create an instance of CallingClient using a webex instance and callingConfig:

Example

const callingClient = createClient(webex, callingConfig);

Hierarchy

  • Eventing<CallingClientEventTypes>
    • CallingClient

Implements

Properties

mediaEngine: __module

Represents the `mediaEngine for managing media-related operations within the CallingClient. The media engine provides access to audio and video devices such as cameras, microphones, and speakers within the media layer.

Example

const microphones = await callingClient.mediaEngine.Media.getMicrophones();
const speakers = await callingClient.mediaEngine.Media.getSpeakers();
const cameras = await callingClient.mediaEngine.Media.getCameras();

Methods

  • Retrieves details of all the Line objects belonging to a User NOTE: currently multiple lines are not supported

    Returns Record<string, ILine>

  • Retrieves call objects for all the active calls present in the client

    Returns Record<string, ICall[]>

Events

  • Type Parameters

    • E extends keyof CallingClientEventTypes

    Parameters

    • event: E

      Event that is going ot be emitted.

    • Rest ...args: Parameters<CallingClientEventTypes[E]>

      Parameters that are emitted with the event.

    Returns boolean

  • .

    Type Parameters

    • E extends keyof CallingClientEventTypes

    Parameters

    • event: E

      Event to listen to.

    • listener: CallingClientEventTypes[E]

      Callback for event.

    Returns CallingClient

  • .

    Type Parameters

    • E extends keyof CallingClientEventTypes

    Parameters

    • event: E

      Event to remove listener on.

    • listener: CallingClientEventTypes[E]

      Callback for event.

    Returns CallingClient