New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rtc-switch-jwt

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rtc-switch-jwt

rtc-switch startup script that validates connections with jwt

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

rtc-switch-jwt

A rtc-switch with JWT for security.

About

A proof-of-concept rtc-switch that adds the following constraints for security:

  • A room must be specified in the rtc-switch connection options
  • A JSON Web Token must be included in the connection URL
  • The JWT must contain a "rooms" claim that includes the room specified above

Example

var quickconnect = require('rtc-quickconnect');
var token = '<jwt token>';

quickconnect('https://localhost:3000/', { room: 'qc-simple-demo', endpoints: ['/ws?token=' + token] })
  .on('call:started', function(id, pc, data) {
    console.log('we have a new connection to: ' + id);
  });

License

MIT © Scott Dietrich

Keywords

rtc-switch-jwt

FAQs

Package last updated on 12 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts