+
Skip to content

Conversation

aodhgan
Copy link

@aodhgan aodhgan commented Mar 20, 2025

Enables more efficient communication with RPC endpoints that support WebSockets, we have seen a reduction in latency with this change testing the bundler.

infers type from RPC URL (websocket or http)
backward compatible with http
uses consistent error parsing handling across http and ws
tested against anvil and remote rpc servers
Other notes:
Considered using NodeJs's native websocket but this requires changing the minimum supported node version to 22.4.0 (from >18.0.0 currently)

@aodhgan aodhgan force-pushed the ag/add-websocket-support branch from 83838f5 to 0d9d974 Compare March 28, 2025 23:39
@aodhgan
Copy link
Author

aodhgan commented Mar 28, 2025

@plusminushalf I rebased master and pnpm test passes locally. lmk if there are any other changes you would like to see?

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.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载