Skip to content

winlinvip/rtc-app-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rtc-app-nodejs

Nodejs AppServer for RTC.

You could also write AppServer by following languages:

For RTC deverloper:

Use OpenAPI to create channel:

Token generation algorithm:

We depends on @alicloud/rtc-2018-01-11, you can also update to the latest version.

Usage

  1. Generate AK from here:
AccessKeyID: OGAEkdiL62AkwSgs
AccessKeySecret: 4JaIs4SG4dLwPsQSwGAHzeOQKxO6iw
  1. Create APP from here:
AppID: iwo5l81k
  1. Clone project and generate config:
git clone https://github.com/winlinvip/rtc-app-nodejs.git &&
cd rtc-app-nodejs && npm install &&
echo "module.exports = {" > config.js &&
echo "  listen: 8080," >> config.js &&
echo "  appId: 'iwo5l81k'," >> config.js &&
echo "  accessKeyId: 'OGAEkdiL62AkwSgs'," >> config.js &&
echo "  accessKeySecret: '4JaIs4SG4dLwPsQSwGAHzeOQKxO6iw'," >> config.js &&
echo "  endpoint: 'http://rtc.aliyuncs.com'," >> config.js &&
echo "  gslb: 'https://rgslb.rtc.aliyuncs.com'" >> config.js &&
echo "};" >> config.js &&
node index.js
  1. Verify your AppServer by here or verify token.

AppServer Success

AppServer Failed

AppServer Error Recovered

Remark: You can setup client native SDK by http://30.2.228.19:8080/app/v1.

Remark: Please use your AppServer IP instead by ifconfig eth0.

History

  • 14b2a46, Update SessionID generation algorithm.
  • 1a11844, Log the request id and cost in ms.
  • a7f4db1, Support recover for some OpenAPI error.
  • Support create channel and sign user token.

About

Nodejs AppServer for RTC.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published