UNPKG

openai

Version:

The official TypeScript library for the OpenAI API

19 lines (18 loc) 656 B
import WS from 'ws'; import { OpenAI } from "../../index.js"; import type { RealtimeClientEvent } from "../../resources/beta/realtime/realtime.js"; import { OpenAIRealtimeEmitter } from "./internal-base.js"; export declare class OpenAIRealtimeWS extends OpenAIRealtimeEmitter { url: URL; socket: WS.WebSocket; constructor(props: { model: string; options?: WS.ClientOptions | undefined; }, client?: Pick<OpenAI, 'apiKey' | 'baseURL'>); send(event: RealtimeClientEvent): void; close(props?: { code: number; reason: string; }): void; } //# sourceMappingURL=ws.d.ts.map