Returns true if client is actively listening for network connections. Otherwise false
Last updated 3 years ago
web3.eth.net.Listening
none
returns BooleanοΌthat the connected node is listening for network requests.
BooleanοΌ
const Listening = web3.net.Listening console.log(Listening); > true