Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

opentok

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opentok - npm Package Compare versions

Comparing version 2.15.2 to 2.16.0

27

lib/client.js

@@ -32,3 +32,4 @@ var requestRoot = require('request');

'/v2/project/<%apiKey%>/broadcast/<%broadcastId%>/layout',
listBroadcasts: '/v2/project/<%apiKey%>/broadcast'
listBroadcasts: '/v2/project/<%apiKey%>/broadcast',
audioStreamer: '/v2/project/<%apiKey%>/connect'
},

@@ -413,2 +414,26 @@ request: {

Client.prototype.websocketConnect = function websocketConnect(opts, cb) {
var url =
this.c.apiUrl +
this.c.endpoints.audioStreamer
.replace(/<%apiKey%>/g, this.c.apiKey);
request.post(
{
url: url,
headers: this.generateHeaders(),
json: opts
},
function requestCallback(err, resp, body) {
if (err) {
return cb(new Error('The request failed: ' + err));
}
if (resp.statusCode === 200) {
return cb(null, body);
}
return cb(new Error('(' + resp.statusCode + ') ' + body.message));
}
);
};
Client.prototype.setStreamClassLists = function setStreamClassLists(

@@ -415,0 +440,0 @@ sessionId,

2

package.json
{
"name": "opentok",
"description": "OpenTok server-side SDK",
"version": "2.15.2",
"version": "2.16.0",
"homepage": "https://github.com/opentok/opentok-node",

@@ -6,0 +6,0 @@ "repository": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc