Skip to content

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

@techwithanirudh

Description

@techwithanirudh

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 (

console.log(`Using WS package`);
) 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:

console.log(`Using WS package`);

That file just prints the log directly. It would be better if this only logged in debug mode or not at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    betaPending GA releaseenhancementNew feature or requestwip

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions