tuweni / org.apache.tuweni.ethclient / EthereumPeerRepository / addIdentityListener

addIdentityListener

abstract fun addIdentityListener(identityListener: (Identity) -> Unit): String (source)

Adds a listener to be called when a new peer connects

Parameters

identityListener - the listener

Return
a listener ID