Skip to content

[FEA-2240] fix(sdk-js): prevent unhandled rejection start failure - #53

Merged
egenthon-cmd merged 1 commit into
mainfrom
fix/live-session-rejection
Sep 9, 2026
Merged

[FEA-2240] fix(sdk-js): prevent unhandled rejection start failure#53
egenthon-cmd merged 1 commit into
mainfrom
fix/live-session-rejection

Conversation

@egenthon-cmd

Copy link
Copy Markdown
Contributor
  • Catch rejected startSession() calls started from the LiveV2Session constructor so they are not unhandled rejections
  • Keep failures observable via error / ended events and getSessionId() rejection
  • Add a regression test that asserts no unhandledRejection on init failure

@egenthon-cmd egenthon-cmd changed the title fix(sdk-js): prevent unhandled rejection start failure [FEA-2240] fix(sdk-js): prevent unhandled rejection start failure Sep 9, 2026
}
if (this._status === 'starting') {
this._status = 'started'
this.emit('started', session)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you using a formatter or have any formatting config in the sdk? Just to make review easier in the future :)

Not blocking

@egenthon-cmd
egenthon-cmd merged commit 12124a1 into main Sep 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants