net_listening

Returns true if client is actively listening for network connections. Otherwise false

web3.eth.net.Listening

Parameters

none

Returns

returns Boolean:that the connected node is listening for network requests.

Example

const Listening = web3.net.Listening
console.log(Listening);
> true

Last updated