Socket
Socket
Sign inDemoInstall

opentok

Package Overview
Dependencies
4
Maintainers
4
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-beta to 3.0.1-beta

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": "3.0.0-beta",
"version": "3.0.1-beta",
"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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc