net_listening
Returns true if client is actively listening for network connections. Otherwise false
web3.eth.net.ListeningParameters
none
Returns
returns Boolean:that the connected node is listening for network requests.
Example
const Listening = web3.net.Listening
console.log(Listening);
> trueLast updated