Open elimydlarz opened 1 month ago
I have the same problem but on Node, except it stays connected just fine. Switching on debug
mode I can definitely see WebSocket events coming in but event handlers are just never triggered.
Oh that's a bit discouraging - I was hoping improved Node compatibility in Deno 2 would help me out of this mess 😅 I really like the approach supported by this client - keen to use it.
Here's my code:
Here's my own client output:
Here's the output from my server:
Note the first
isConnected()
result is after message "1" while the second is after message "2".I'm confused about some things
Warning: Not implemented: ClientRequest.options.createConnection
might indicate some fundamental incompatibility with Deno, since it's WebSocket implementation is not the same as Node's as far as I can tell (for example, it doesn't support a WS client setting auth headers)import { RealtimeClient } from "../node_modules/@openai/realtime-api-beta/index.js";
conversation.updated
handler never fire?