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

outdated

Near Procedure Call.

Near Procedure Call. #

Usage #

// Create a NPC
final npc = NPC((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
90
points
142
downloads

Publisher

unverified uploader

Weekly Downloads

Near Procedure Call.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

cancelable, meta

More

Packages that depend on npc