web3c.js
web3c.js copied to clipboard
OasisProvider does not support subscriptions
The following steps produce the bug in the title:
let web3c = new Web3c('wss://web3.oasiscloud.io/ws')let contract = web3c.oasis.Contract(...)contract.events.GameStart(...)orcontract.once('GameState', ...)
Web3 version: 1.0.0-beta37
Web3c version: master (Using master until https://github.com/oasislabs/web3c.js/pull/145 is released)
(updated for clarity)
cc @armaniferrante - https://github.com/oasislabs/web3c.js/pull/138 should have introduced support for subscriptions
looks like we have web3c.oasis.subscribe, but maybe the missing link is on web3c.oasis.contract
We didn’t modify the Contract object there, just wrapped ‘web3c.oasis.subscribe’. This might require additional work.