tuweni / org.apache.tuweni.ethclient / MemoryEthereumPeerRepository / addIdentityListener

addIdentityListener

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