You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
9 years ago | |
|---|---|---|
| debian | 9 years ago | |
| src | 9 years ago | |
| t | 9 years ago | |
| test | 9 years ago | |
| .editorconfig | 9 years ago | |
| .gitignore | 9 years ago | |
| .gitreview | 10 years ago | |
| Makefile | 9 years ago | |
| README.md | 9 years ago | |
| npm-shrinkwrap.json | 9 years ago | |
| package.json | 9 years ago | |
README.md
JanusVideoroomClient
Node.js client that implements a subset of the WebSocket interface of the Janus WebRTC Gateway.
Note: For now it supports the videoroom plugin only.
Setup
var JanusVideoroomClient = require('janus-videoroom-client').Janus;
Create a new client
Without authentication
var client = new JanusVideoroomClient({
url: 'ws://localhost:8188'
});
Token based authentication
var client = new JanusVideoroomClient({
url: 'ws://localhost:8188',
token: 'yourToken'
});
Static secret authentication
var client = new JanusVideoroomClient({
url: 'ws://localhost:8188',
apiSecret: 'yourStaticSecret'
});
Run tests
npm test