Skip to content

feat: Add WebSocket logic to network access Snap#3458

Merged
FrederikBolding merged 4 commits intomainfrom
fb/ws-example
Jun 17, 2025
Merged

feat: Add WebSocket logic to network access Snap#3458
FrederikBolding merged 4 commits intomainfrom
fb/ws-example

Conversation

@FrederikBolding
Copy link
Copy Markdown
Member

@FrederikBolding FrederikBolding commented Jun 17, 2025

Expands the network access Snap to support opening a WebSocket connection and subscribing to block updates from a local Ethereum node. Additionally fixes some mistakes made in the original WebSocket PR.

Closes #3456

@FrederikBolding FrederikBolding changed the title wip: Add WebSocket example logic feat: Add WebSocket logic to network access Snap Jun 17, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.21%. Comparing base (443340f) to head (01df685).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3458   +/-   ##
=======================================
  Coverage   98.21%   98.21%           
=======================================
  Files         404      404           
  Lines       11317    11334   +17     
  Branches     1764     1766    +2     
=======================================
+ Hits        11115    11132   +17     
  Misses        202      202           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@FrederikBolding FrederikBolding marked this pull request as ready for review June 17, 2025 08:35
@FrederikBolding FrederikBolding requested a review from a team as a code owner June 17, 2025 08:35
Copy link
Copy Markdown
Member

@Mrtenz Mrtenz left a comment

Choose a reason for hiding this comment

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

Please update the README of the example as well.

@FrederikBolding FrederikBolding added this pull request to the merge queue Jun 17, 2025
Merged via the queue into main with commit 8bf1e1b Jun 17, 2025
119 checks passed
@FrederikBolding FrederikBolding deleted the fb/ws-example branch June 17, 2025 13:24
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.

Write an example Snap that uses WebSockets

2 participants