craba 0.0.2 craba: ^0.0.2 copied to clipboard
Craba is a method call component for custom communication.
Craba is a method call component for custom communication.
Usage #
// create a craba
final craba = Craba((message) async{
// send message
});
//when message received.call:
craba.receive(message);
// register handle
craba.on('ping', (param, cancelable, notify)=>'pong');
// emit
await craba.emit('hello');
// deliver
await craba.deliver('download', param: '/path', onNotify: (param){
});