I’m trying to get the OpenAI Realtime Console to run at GitHub - openai/openai-realtime-console: React app for inspecting, building and debugging with the Realtime API
I want to use the relay server.
I launch the relay server using npm run:
[nodemon] starting node ./relay-server/index.js
[RealtimeRelay] Listening on ws://localhost:8081
I edit my .env:
OPENAI_API_KEY=<MY_API_KEY>
REACT_APP_LOCAL_RELAY_SERVER_URL=http://localhost:8081
Then I launch the react app using npm start. When I click the “connect” button the browser errors out with:
Could not connect to “http://localhost:8081”
at WebSocket.connectionErrorHandler (http://localhost:3000/static/js/bundle.js:59606:18)
You have set the Websocket
server at that address
But are trying to access it as an HTTP server.
The actual HTTP server is probably located at localhost:3000
1 Like
Have you tried OpenAI Relatime Console yourself or at least loooked at the instructions?
BTw. I’ve also tried using ws://localhost:8081 instead of http://localhost:8081, does not work either.
Nope, never used it.
I figured I would try to throw what my impression is and maybe it would help. In most cases just having a general understanding does the trick. I skimmed the information & thought you were trying to access it like it’s the interface. Sorry about that 
Yeah. I believe if you are trying to connect to it the server is smart enough to change the request for websockets.
Regardless, clearly following the instructions has lead you to an issue that I haven’t seen before… Soo…
Hopefully someone who has used it can provide some better input.
1 Like