interface DittoBusCallback

Callbacks relating to Ditto Bus for both receiving single messages and accepting incoming streams.


Link copied to clipboard
abstract fun dittoBusDidReceiveIncomingStreamFromPeer(busStream: DittoBusStream, peer: DittoAddress)

Another peer has opened a stream to this device. Set its callbacks immediately.

Link copied to clipboard
abstract fun dittoBusDidReceiveSingleMessage(bus: DittoBus, message: DittoBusMessage)

A bus message has been received from another peer in the mesh.