@vonage/video
Version:
Package to interact with the Vonage Video API (Not OpenTok Compatible)
32 lines (29 loc) • 760 B
TypeScript
import { AudioRate } from '../enums/AudioRate.js';
/**
* Configuration options for establishing a WebSocket connection.
*/
type WebSocketConfig = {
/**
* The URI to connect to the WebSocket server.
*/
uri: string;
/**
* An array of stream IDs to associate with the WebSocket connection.
*/
streams?: string[];
/**
* Optional headers to include in the WebSocket request.
*/
headers?: {
[key: string]: string;
};
/**
* The audio rate to be used for the WebSocket connection.
*/
audioRate?: AudioRate;
/**
* Whether the WebSocket connection should be bidirectional. By default, this is false.
*/
bidirectional?: boolean;
};
export type { WebSocketConfig };