Unclear if with oasis.gateways.Gateway you can subscribe to events
omitar opened this issue · comments
In documentation it says for oasis.gateways.Gateway
:
It currently only supports HTTP.
For Web3.js for HTTP providers you cannot subscribe to events. It is unclear from documentation if this holds for Oasis.js as well. So do I have to use Web3Gateway
if I want to subscribe to events? Or can I use oasis.gateways.Gateway
?
Anything implementing the OasisGateway
interface should have subscriptions, including oasis.gateways.Gateway
.
Also note that oasis.gateways.Gateway
is supposed to be used with https://github.com/oasislabs/developer-gateway/, which I don't think is hosted in any public exposed infrastructure at the moment.
Leaving this issue open to write better docs.
which I don't think is hosted in any public exposed infrastructure at the moment.
Does oasis chain
expose it?
No oasis-chain
does not expose it.
No oasis-chain does not expose it.
:-( Then it is pretty hard to develop against it at the moment. No public infrastructure and no oasis chain. Maybe this should be added to documentation with some "note box" saying that this is not yet readily available.
Docs added #285