Skip to content

Conversation

@dawsbot
Copy link
Owner

@dawsbot dawsbot commented Jan 31, 2026

Adds WebSocketProvider for real-time Ethereum subscriptions (newHeads, logs, pendingTransactions). Includes reconnection logic with exponential backoff. Event-based API with on/off. Part of Phase 1 roadmap (WebSocket Provider).

@vercel
Copy link

vercel bot commented Jan 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
essential-eth Error Error Feb 7, 2026 9:48pm

@dawsbot
Copy link
Owner Author

dawsbot commented Jan 31, 2026

Closes #57

dependabot bot and others added 3 commits February 7, 2026 14:47
Removes [axios](https://github.com/axios/axios). It's no longer used after updating ancestor dependencies [axios](https://github.com/axios/axios), [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus) and [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic). These dependencies need to be updated together.


Removes `axios`

Updates `@docusaurus/core` from 2.1.0 to 3.9.2
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG-v2.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.9.2/packages/docusaurus)

Updates `@docusaurus/preset-classic` from 2.1.0 to 3.9.2
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG-v2.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.9.2/packages/docusaurus-preset-classic)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 
  dependency-type: indirect
- dependency-name: "@docusaurus/core"
  dependency-version: 3.9.2
  dependency-type: direct:production
- dependency-name: "@docusaurus/preset-classic"
  dependency-version: 3.9.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
- WebSocketProvider extends BaseProvider, works over WebSocket instead of HTTP
- Supports all standard JSON-RPC methods (getBalance, getBlock, etc.)
- Real-time subscriptions: subscribe/unsubscribe for newHeads, logs, newPendingTransactions
- Event-based API with on/off for subscription notifications
- Reconnection logic with exponential backoff (3 attempts: 1s, 2s, 4s)
- Auto-incrementing request IDs for matching responses
- destroy() for clean connection teardown
- Uses global WebSocket (Node 21+, browsers), falls back to 'ws' package
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