Skip to content

Latest commit

 

History

History
executable file
·
29 lines (19 loc) · 570 Bytes

README.md

File metadata and controls

executable file
·
29 lines (19 loc) · 570 Bytes

TokenServer

TokenServer for BRTC.

Usage

  1. Create AppID and AppKey from here:
AppID: xxxxxxxx
AppKey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  1. Clone project and generate config:
echo "module.exports = {" > config.js &&
echo "  listen: 8080," >> config.js &&
echo "  appId: 'GET-FROM-BAIDU'," >> config.js &&
echo "  appKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'," >> config.js &&
echo "};" >> config.js &&
node index.js
  1. Test from Browser.

http://127.0.0.1:8080/v1/?roomname=8888&userid=123