node-eos-voice

1.0.2 • Public • Published

node-eos-voice

Simple wrapper for EOS (Epic Online Services) Voice, allows you to generate Room Tokens without having to manage the EOS Access Token.

Usage:

const EOSVoice = require('node-eos-voice');
EOSVoice.init({
   deploymentId: "",
   clientId: "",
   clientSecret: "",
   check_nonce: true,
   verbose: false
})
EOSVoice.getRoomCredentials({
   roomId: "Testing-Room-123",
   participants: [
       {
           "puid": "[EOS_ProductUserId]",
           "clientIp": "Used to find best server",
           "hardMuted": false
       }
   ]
}).then((data) => {
   console.log(data);
}).catch((e) => {
   console.log(error);
});

Package Sidebar

Install

npm i node-eos-voice

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

5.66 kB

Total Files

5

Last publish

Collaborators

  • mrcraig0