Skip to content

fix: 🐛 prefer native WebSocket in assertExpectedChainVersion for Workers #1609

Open
prashantasdeveloper wants to merge 2 commits into
developfrom
fix/ws
Open

fix: 🐛 prefer native WebSocket in assertExpectedChainVersion for Workers #1609
prashantasdeveloper wants to merge 2 commits into
developfrom
fix/ws

Conversation

@prashantasdeveloper

Copy link
Copy Markdown
Contributor

Description

Breaking Changes

JIRA Link

Checklist

  • Updated the Readme.md (if required) ?

Cloudflare Workers with nodejs_compat expose both globalThis.WebSocket
and process.versions.node, which caused the SDK to dynamically import the
Node ws package and fail with "ws does not work in the browser". Prefer
the native WebSocket whenever it exists and only fall back to ws when it
does not.
updateStatus only notified listeners for Unapproved, Running, and Succeeded,
so intermediate states like Future and InBlock were skipped. Include those
statuses (and Idle) in the StatusChange event path
@prashantasdeveloper prashantasdeveloper requested a review from a team as a code owner June 25, 2026 13:06
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
4 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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