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){

});

Libraries

craba