-
Notifications
You must be signed in to change notification settings - Fork 5k
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
supportsSubscriptions method added to providers #3116
Conversation
The documentation for all providers will get improved with issue #3117 |
I wouldn't release this just yet. It would expose a super experimental API that will probably change soon. |
Could you elaborate your view of this? It's experimental wrt EIP 1193 & the Events Spec? |
Yes, sure. We had a meeting with about ~15 people to discuss the direction of the EIP-1193 during devcon. I'll post a summary and several PRs soon. One of the conclusions was that the provider should describe its capabilities. We explored many possible solutions, including not doing them at all, using a bunch of boolean fields, a IMO the EIP should be updated to reflect that, and some consensus is reached, implemented here. |
@alcuadrado Ah! Excellent thanks. |
@alcuadrado This is true but it will take an amount of time until this EIP is finalized and the method |
The issue is not so much about how to implement it here, but about the
frustration it would cause to users across the ecosystem. Some people will
get used to web3 providers, and without knowing about eip1193, they'll just
expect everything to mimic web.
Middle ground proposal: let's give it a month. I'll push for the eip to be
finalized asap.
…On Tue, 22 Oct 2019 at 13:37 Samuel Furter ***@***.***> wrote:
Yes, sure. We had a meeting with about ~15 people to discuss the direction
of the EIP-1193 during devcon. I'll post a summary and several PRs soon.
One of the conclusions was that the provider should describe its
capabilities. We explored many possible solutions, including not doing them
at all, using a bunch of boolean fields, a supports function, and a
supports object.
IMO the EIP should be updated to reflect that, and some consensus is
reached, implemented here.
@alcuadrado <https://github.com/alcuadrado> This is true but it will take
an amount of time until this EIP is finalized and the method
supportsSubscriptions is a long out-standing and simple feature request
from the community. It is additionally allowed to extend an existing EIP as
long as we support all the functionalities this EIP does define. I mean
with this that we currently can keep this method until the EIP-1193 is
finalized and we can later provide compatibility to the EIP-1193. If the
method getCapabilities(): Capabilities got added. Will
supportsSubscription first be a wrapper of the existing getCapabilities
method just with a deprecation message added and can get removed later with
a Minor release of web3.js.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3116>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABLC47DPQEHC26IQFBJRZTQPZ7PZANCNFSM4I6YDOCQ>
.
|
* supportsSubscriptions method added to providers
back-porting of #2632 from 2.x to 1.x