-
-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Fallback public client with WS transport doesn't use eth_subscribe #776
Comments
Since the Edit: An alternative easy fix might be to change the
and also exposing the |
Experiencing this as well, when I add |
is this still a problem? |
It appears show, I just retried the stackblitz with an updated version of Viem. |
This issue has been locked since it has been closed for more than 14 days. If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Viem version. If you have any questions or comments you can create a new discussion thread. |
Is there an existing issue for this?
Package Version
1.1.6
Current Behavior
When using a fallback provider with a websocket transport underneath, the provider does not use subscriptions and instead reverts to polling over the websocket connection.
Expected Behavior
If a fallback provider is used, and the attempted transport being used is websocket, use
eth_subscribe
Steps To Reproduce
See minimal repo -> Network Inspector -> Websocket connection
Link to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)
https://stackblitz.com/edit/viem-getting-started-ynbq9a?file=index.ts
Anything else?
No response
The text was updated successfully, but these errors were encountered: