DittoBusDelegate
public protocol DittoBusDelegate : AnyObject
Callbacks relating to Ditto Bus for both receiving single messages and accepting incoming streams.
-
A bus message has been received from another peer in the mesh.
Declaration
Swift
func dittoBus(_ bus: DittoBus, didReceiveSingleMessage message: DittoBusMessage)
-
Another peer has opened a stream to this device. Set its delegate immediately.
Declaration
Swift
func dittoBus(_ bus: DittoBus, didReceiveIncomingStream stream: DittoBusStream, fromPeer peer: DittoAddress)