Skip to main content

CallTap

Represents a current or past tapping of a call.

Accessors

id

get id(): string

The unique id for this tapping.

Returns

string

Methods

ended

ended(): Promise<CallTap>

Returns a promise that is resolved only after this tap finishes (or is stopped).

Returns

Promise<CallTap>

Example

const tap = await call.tapAudio({
direction: "both",
device: {
type: "ws",
uri: "wss://example.domain.com/endpoint",
},
});

await tap.ended();

stop

stop(): Promise<CallTap>

Stops the tapping.

Returns

Promise<CallTap>

Example

const tap = await call.tapAudio({
direction: "both",
device: {
type: "ws",
uri: "wss://example.domain.com/endpoint",
},
});

await tap.stop();