deepgram / deepgram-js-sdk

Official JavaScript SDK for Deepgram's automated speech recognition APIs.
https://developers.deepgram.com
MIT License
127 stars 45 forks source link

fix: allow the client to work in either websocket environment #199

Closed lukeocodes closed 7 months ago

lukeocodes commented 7 months ago

Such is the unique way that Node and JS differ on their WebSocket interfaces, this will attempt one and fall-back to the other if a syntax error is caught. Not great, but it works. I consider this a temporary solution to finding a library that handles WebSockets correctly in an isomorphic library.