Instantiate Zello Consumer Easily
npm i zelloconsumer --save
Then...
in your index.js file
const zelloconsumer = require('zelloconsumer')
zelloconsumer.call({
issuer: 'path/issuerKey.txt',
private: 'path/privateKey.json',
widget: true
}).then(port => console.log(`${port['port']}`))
.catch(error => console.log(`${error['error']}`))
Zello Consumer require 2 options, both of which are mandatory:
-
issuer - you get it in https://developers.zello.com/
-
private - you get it in https://developers.zello.com/
after obtaining them, save them in two files issuer.txt and private.json and pass the file path in the function
node index.js