deepgram-js-sdk icon indicating copy to clipboard operation
deepgram-js-sdk copied to clipboard

When using Bun, Deepgram keeps logging "Using WS Package"

Open techwithanirudh opened this issue 5 months ago • 1 comments

What is the current behavior?

What's happening that seems wrong?

I'm using Bun with the latest version of the Deepgram SDK. Every time the SDK establishes a connection, it logs "Using WS Package" to the console. The culprit is in (https://github.com/deepgram/deepgram-js-sdk/blob/7b22b07c802ff7ee5454eed75782644e9aefcd5d/src/packages/AbstractLiveClient.ts#L134) where the code detects Bun and prints "Using WS Package".

Steps to reproduce

  1. Create a new project with Bun.
  2. Use the Deepgram SDK for Live Streaming Transcription.
  3. Watch your logs, you’ll keep seeing "Using WS Package" spammed every time a connection is made.

Expected behavior

What would you expect to happen when following the steps above?

There shouldn't be any unnecessary log messages. No "Using WS Package" log should appear unless I explicitly enable some debug mode.

Please tell us about your environment

We want to make sure the problem isn't specific to your OS or language.

  • Operating System/Version: Debian 12
  • Language: TypeScript
  • Runtime: Bun

Other information

Anything else we should know? (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for context, etc.)

The issue is here: https://github.com/deepgram/deepgram-js-sdk/blob/7b22b07c802ff7ee5454eed75782644e9aefcd5d/src/packages/AbstractLiveClient.ts#L134 That file just prints the log directly. It would be better if this only logged in debug mode or not at all.

techwithanirudh avatar Jun 15 '25 08:06 techwithanirudh

any updates?

techwithanirudh avatar Oct 22 '25 10:10 techwithanirudh