UNPKG

@vonage/voice

Version:

The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.

24 lines (22 loc) 643 B
/** * Represents a WebSocket endpoint, which can be used as a call destination. */ type WebsocketEndpoint = { /** * Specifies the type of endpoint, which is 'websocket' for WebSocket. */ type: 'websocket'; /** * The URI (Uniform Resource Identifier) of the WebSocket endpoint. */ uri: string; /** * An optional content type to specify the format of the data sent to the WebSocket endpoint. */ contentType?: string; /** * Optional headers to include when connecting to the WebSocket endpoint. */ headers?: Record<string, unknown>; }; export type { WebsocketEndpoint };