Returns true if client is actively listening for network connections. Otherwise false
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
Last updated 4 years ago