Replies: 1 comment 4 replies
-
Thank you for your request. I've tried this code: const Web3 = require('web3').default;
const web3 = new Web3('ws://127.0.0.1:8545')
console.log('web3.currentProvider',web3.currentProvider)
console.log('web3.currentProvider.disconnect',web3.currentProvider.disconnect) and result was:
So, the disconnect function exists |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Previously you could disconnect your Websocket provider from the main web3 context via:
However that is no longer possible as it isnt an exposed method. I haven't had any luck finding any static methods, anyone know what's the best way to close?
The dangling connections are interfering with my processes exiting nicely.
This is what's exposed to me:
Beta Was this translation helpful? Give feedback.
All reactions