createRealtimeAPIClient
createRealtimeAPIClient(apiKey: string
, onWebSocketClose: Function
): Promise<RealtimeAPIClient>
Creates a RealtimeAPIClient instance.
Parameters
apiKey:
string
The API key for the OpenAI Realtime API
onWebSocketClose:
Function
A callback function that is called when the WebSocket connection is closed
Returns
type:
Promise<RealtimeAPIClient>