WebSocketAPIClientParameters
Ultravox.WebSocketAPIClient parameters. Can be passed as arguments to the Ultravox.createWebSocketAPIClient method.
Props
body
body: Object
Optional. Ultravox request body. See the documentation of the specified endpoint for details.
endpoint
endpoint:
Ultravox HTTP endpoint. Note that Ultravox Call is created by the specified endpoint HTTP invocation, the response data for which can be handled in the WebSocketAPIEvents.HTTPResponse event.
onWebSocketClose
onWebSocketClose: (event: WebSocketEvents.CLOSE) => void
| undefined
Optional. A callback function that is called when the WebSocket connection is closed.
pathParameters
pathParameters: Object
Optional. Ultravox request path parameters. See the documentation of the specified endpoint for details.
queryParameters
queryParameters: Object
Optional. Ultravox request query parameters. See the documentation of the specified endpoint for details.