-
Notifications
You must be signed in to change notification settings - Fork 118
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
Add WS support to cryo #65
Comments
hey there - C/P'ing my messages from the TG on this 0xprames, [Sep 24, 2023 at 10:22:40 AM]: Looking at the alchemy docs for it rn and I see this w.r.t Websocket transport errors and how clients would do retries (as opposed to Http clients catching a 429 and retrying) I think the first option you mention makes sense to unblock anyone who NEEDS a WS client asap (just creating a basic WS ethers provider w/o retry) Looking at the alchemy docs for it rn and I see this w.r.t Websocket transport errors and how clients would do retries (as opposed to Http clients catching a 429 and retrying) I think the first option you mention makes sense to unblock anyone who NEEDS a WS client asap (just creating a basic WS ethers provider w/o retry) although im curious as to why a WS connection would be preferred as a user (for the existing Fetcher impl - i.e classic JsonRpc requests) which confirms what Libevm was saying earlier re: no Ws support rn in ethers::RetryClient I suspect a WsRateLimitRetryPolicy may be a bit more complex to implement given that alchemy wss screencap above. |
tl;dr (deleted those messages bc I spammed chat)
gives:
|
so i think the solution @ipatka mentioned in that TG makes sense, which is to add a basic WS client without retries, and maybe iterate on that solution (either here or in ethers.rs codebase), adding retries eventually |
add ws support pls 🙏
The text was updated successfully, but these errors were encountered: