elastos_carrier_addon
v0.0.9
Published
Elastos.NET.Carrier.Nodejs.SDK is the [Node.js Add-on](https://nodeaddons.com/) for Elastos Carrier. It allows Javascript code to call [Carrier C++](https://github.com/elastos/Elastos.NET.Carrier.Native.SDK) functions.
Downloads
11
Readme
Introduce
elastos_carrier addon is the Node.js Add-on for Elastos Carrier. It allows Javascript code to call Carrier C++ functions.
Installation
nstall with npm:
npm install elastos_carrier_addon
Example
const carrierSdk = require('elastos_carrier_addon');
console.log(carrierSdk.getVersion());
var carrier = carrierSdk.createObject(opts, callbacks);
carrier.on("idle", idle_callback); //add idle event
carrier.on("idle", null); //delete idle event
carrier.run();
See demo for more detail.