-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
1193: disconnect
event, connectivity errors
#2586
Conversation
As much as I like the fact that |
The only reason I picked |
Hi! I'm a bot, and I wanted to automerge your PR, but couldn't because of the following issue(s):
|
disconnect
eventdisconnect
event, isConnected
method
@ryanio, note that I added the Happy to roll it back if undesired, but, I obviously think it's justified 😛 |
I’d prefer not to introduce another method. Wouldn’t you be able to just send a json rpc request like eth_chainId to verify connection? |
I’m very sympathetic to that goal. On reflection, even though a method enabling consumers to tell if “the wire is hot” would be nice, we could just standardize this by means of an RPC error. Since this will be specific to the Provider, that error should IMO be introduced here. What do you think? |
disconnect
event, isConnected
methoddisconnect
event, connectivity errors
e0e52a3 Removed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice contributions, thanks very much 🎉
Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing
Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing
Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing
File: https://github.com/rekmarks/EIPs/blob/1193-open/EIPS/eip-1193.md
disconnect
event, intended to:close
eventconnect
eventclose
eventThe above follows discussions with @ryanio
In addition:
4900: Not Connected
4901: Chain Not Connected
Connectivity
for defining "connected" and "disconnected"This allows consumers to tell whether their requests are failing because the Provider is disconnected.