Commit Graph
2 Commits
Author SHA1 Message Date
Pavel Torbeev 4a676eca67 + Updated: build & d.ts (for last commit) 2019-12-26 19:59:08 +05:00
Pavel Torbeev a47449e7cb Added: on/register return functions off/unregister
You can use:
const off = rpc.on('event', handler);
// do any actions
off();

Similarly:
const unregister = rpc.register('event', handler);
//do any actions
unregister();
2019-12-18 22:48:40 +05:00