Portal
Search…
net_listening
Returns true if client is actively listening for network connections. Otherwise false
1
web3.eth.net.Listening
Copied!

Parameters

none

Returns

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

Example

1
const Listening = web3.net.Listening
2
console.log(Listening);
3
> true
Copied!
Last modified 9mo ago
Copy link