TribbleCallback typedef

TribbleCallback = void Function(ConnectFn , ReplyFn )

Callback function that a tribble will invoke in a new Isolate. The Map that will be passed in should be treated as Opaque!

The Callback function is expected to call the Tribble.connect(map) static function with the map that was passed in if it wishes to receive future incoming messages. Likewise it can use the passed in map with the Tribble.reply() static function to send messages to any listeners of the tribbles 'messages' stream.

Implementation

typedef TribbleCallback = void Function(ConnectFn, ReplyFn);