open fun addListener(listener: Consumer<LocalIdentity!>!): Unit
(source)
Adds a listener to be notified when the service receives UDP packets that match Scuttlebutt identities. Listeners may be added at any time during the lifecycle of the service
listener
- Consumer<LocalIdentity!>!: the listener to add