Skip to content

Conversation

@natebot13
Copy link
Contributor

Description of Changes

Fixes a Typescript SDK bug where onclose of WebsocketDecompressAdapter is never called

API and ABI breaking changes

None

Expected complexity level and risk

Potential risk as Typescript SDK consumers might be currently relying only on onConnectError to report disconnection. Users should instead use onDisconnect, or can simply subscribe to both callbacks with the same function again to get the same functionality.

This is a trivial change, but could have minor repercussions on current code. I'd still say it's a level 1 change, with consumers able to easily change to the correct callback.

Testing

@CLAassistant
Copy link

CLAassistant commented Aug 11, 2025

CLA assistant check
All committers have signed the CLA.

@jdetter jdetter requested a review from JulienLavocat August 11, 2025 14:30
Copy link
Contributor

@JulienLavocat JulienLavocat left a comment

Choose a reason for hiding this comment

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

LGTM - Thank you for your contribution!

@JulienLavocat JulienLavocat force-pushed the nathan/fix-onclose-callback branch from 4a97302 to af5ad07 Compare August 11, 2025 14:34
@bfops bfops disabled auto-merge August 11, 2025 16:30
@bfops bfops added this pull request to the merge queue Aug 11, 2025
Merged via the queue into clockworklabs:master with commit 3faf1c5 Aug 11, 2025
18 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.

Typescript SDK: Both 'onerror' and 'onclose' call the same error function, making client code unable to distinguish a clean close vs connection error

4 participants