Closed AndryHTC closed 7 months ago
@tempo-riz do not worry. I've implemented realtime in Web successfully, but I still think this package is useful and I would prefer to use this instead.
To implement the authentication with WebSockets, Deepgram team added an alternative https://github.com/orgs/deepgram/discussions/175
oh so it seems possible, nice ! Will try that thanks for the link
update : so websockets now work on web aswell using the trick you mentioned. But the package is still not avalable for web for this reason :
So package universal_io which's purpose is to support WEB, doesn't actually supports ... WEB That's interesting
Okay from version 1.0.4 package supports WEB :)
Okay so I learned a bit more about websockets, it doesn't seems possible to use headers in a client-side websocket connection (in a browser) that's why the official demo project from js sdk for live streaming uses an express server as intermediate : https://github.com/deepgram-devs/js-live-example or nodejs (backend-side) others references :
If i'm wrong please explain :)
So that said the solutions I have :
What's your use case @AndryHTC ?