npc 4.0.2 copy "npc: ^4.0.2" to clipboard
npc: ^4.0.2 copied to clipboard

Near Procedure Call.

Near Procedure Call. #

Usage #

// Create a NPC
final npc = NPC();
npc.send = (message) async{
    // send message
};
//call when message received:
await npc.receive(message);
// register handle
npc.on('ping', (param, cancelable, notify)=>'pong');
// emit
await npc.emit('say', 'hello');
// deliver
final r = await npc.deliver('download', param: '/path', onNotify: (param){

});

Try the example for more usage. #

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Near Procedure Call.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

cancelable

More

Packages that depend on npc