Skip to content

WebSocket subscription to avoid polling#2120

Open
leoyvens wants to merge 3 commits intomainfrom
leo/evm-ws
Open

WebSocket subscription to avoid polling#2120
leoyvens wants to merge 3 commits intomainfrom
leo/evm-ws

Conversation

@leoyvens
Copy link
Copy Markdown
Collaborator

When at chain head and using an EVM RPC provider, a ws_url can now be configured to wake up the ingestion loop with lower latency than polling calls.

This should be robust to the ws connection not working or going silent at any point, by falling back to polling on failure or a delay between updates. Auth uses the same configuration as the regular rpc url.

Remove useless `.into()` calls on `Url` and rewrite a drain loop as
`while let`. Regenerate `docs/schemas/providers/evm-rpc.spec.json` to
pick up the new `ws_url` field.
@leoyvens leoyvens marked this pull request as ready for review April 10, 2026 14:33
@leoyvens leoyvens requested a review from Theodus April 10, 2026 14:34
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.

1 participant