You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
install web3
instantiate with infura websockets
let web3=new Web3(new Web3.providers.WebsocketProvider(process.env.INFURA));
create a subscription with logs
web3.eth.subscribe('logs', {} ,function(){ ... });
then call web3.eth.clearSubscriptions()
Logs
No error just an undefined result. I also do not seem to be able to start web.eth.subscribe again.
Environment
web3 1.2.11 ,node js version 12.18.3, wsl2 ubuntu 20.04
The text was updated successfully, but these errors were encountered:
"web3.eth.clearsubscriptions()" is shown in the document return type 'Boolean'. It has no mention of return value undefined in the document, and I don't know if this is a problem with your comments or documentation. Under what circumstances is it normal for undefined to appear?
Uh oh!
There was an error while loading. Please reload this page.
Expected behavior
web3.eth.clearSubscriptions returns a boolean
Actual behavior
web3.eth.clearSubscriptions returns undefined
Steps to reproduce the behavior
install web3
instantiate with infura websockets
let web3=new Web3(new Web3.providers.WebsocketProvider(process.env.INFURA));
create a subscription with logs
web3.eth.subscribe('logs', {} ,function(){ ... });
then call web3.eth.clearSubscriptions()
Logs
No error just an undefined result. I also do not seem to be able to start web.eth.subscribe again.
Environment
web3 1.2.11 ,node js version 12.18.3, wsl2 ubuntu 20.04
The text was updated successfully, but these errors were encountered: