Skip to content

🐛 Bug: enableSFU: true default in v1.2.20 causes immediate disconnection loop #10

@a-tokyo

Description

@a-tokyo

Bug: enableSFU: true default in v1.2.20 causes immediate disconnection loop

Problem

Upgrading from v1.2.11 to v1.2.20 breaks all connections. The client connects then immediately disconnects in a loop.

Reproduction

const client = new SimliClient();
client.Initialize({
  faceID: 'my-face-id',
  handleSilence: true,
  maxSessionLength: 3600,
  maxIdleTime: 600,
  enableConsoleLogs: false,
  videoRef: videoElement,
  audioRef: audioElement,
  session_token: 'valid-token',
});

await client.start(iceServers);
// Immediately disconnects after "connected" event

Console Output

SIMLI: [email protected] initialized
START
connected
disconnected  ← Immediate disconnect
START
connected
disconnected  ← Loops forever

Root Cause

v1.2.20 defaults enableSFU: true which is incompatible/broken.

Workaround

client.Initialize({
  // ... other config
  enableSFU: false  // Forces old MCU mode - works perfectly
});

Expected

  • SFU mode should work without disconnections, OR
  • Document breaking change in release notes, OR
  • Default to enableSFU: false for backward compatibility

Environment

  • Package: [email protected]
  • Browsers: Chrome, Safari, Firefox (all affected)
  • Works fine with: v1.2.11 or v1.2.20 + enableSFU: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions