546 B
546 B
How to use
Fill in your vendor information
Open DemoServer.js and replace and with your value
// Fill the appID and appCertificate key given by Agora.io
var appID = "<YOUR APP ID>";
var appCertificate = "<YOUR APP CERTIFICATE>";
Install Dependencies
npm i
node DemoServer.js
Generate Token
Generate RTC Token
curl http://localhost:8080/rtcToken?channelName=test
Generate RTM Token
curl http://localhost:8080/rtmToken?account=testAccount