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.
Go to file
Hans-Peter Herzog ccc512e0bc
TT#2723 New release
9 years ago
debian TT#4931 Initial empty package to start using Jenkins on Gerrit 9 years ago
src TT#2723 Refactored transaction 9 years ago
t TT#2723 Add initial Dockerfile for nmp tests 9 years ago
test TT#2723 Refactored transaction 9 years ago
.editorconfig TT#2723 Implement janus-client JS library to communicate from App to Janus 9 years ago
.gitignore TT#2723 Implement janus-client JS library to communicate from App to Janus 9 years ago
.gitreview TT#2722 Add .gitreview 10 years ago
Makefile TT#4931 Initial empty package to start using Jenkins on Gerrit 9 years ago
README.md TT#2723 Serveral changes related to the publication on npm 9 years ago
npm-shrinkwrap.json TT#2723 Fixed dependency 9 years ago
package.json TT#2723 New release 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