Deepgram Voice Agent - Web Socket Issue

We’re trying to get Deepgram’s new Voice Agent API to work. It needs a web socket connection and ChatGPT says it will work…but after about 4 hours of troubleshooting…it doesn’t.

Have gone round and round and each error that’s fixed results in another error. GPT had good ideas about javascript snippets that all made sense, but in the end, it couldn’t figure it out.

Has anyone tried this?