Socket
Socket
Sign inDemoInstall

rtcpeerconnection

Package Overview
Dependencies
Maintainers
3
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rtcpeerconnection - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

4

package.json
{
"name": "rtcpeerconnection",
"version": "2.1.0",
"version": "2.1.1",
"description": "A tiny browser module that normalizes and simplifies the API for WebRTC peer connections.",

@@ -34,3 +34,3 @@ "main": "rtcpeerconnection.js",

"ie/10..latest",
"chrome/33..latest",
"chrome/32..latest",
"firefox/24..latest",

@@ -37,0 +37,0 @@ "safari/latest",

@@ -12,4 +12,2 @@ # RTCPeerConnection

It also applies the SDP hack for lifting data transfer speed limits imposed by chrome by default. It modifies the "AS" or application specific maximum bandwidth setting from 30 kilobits / sec to 100 Mbps. This is really handy for file transfers, etc. It can be disabled by passing `{sdpHack: false}` as part of your config as passed in the first argument.
## Installing

@@ -35,3 +33,2 @@

// also takes a couple other options:
// sdpHack: false (to not use the SDP hack as described above)
// debug: true (to log out all emitted events)

@@ -38,0 +35,0 @@ var pc = new PeerConnection({config servers as usual}, {constraints as to regular PC});

@@ -67,8 +67,10 @@ var _ = require('underscore');

PeerConnection.prototype.__defineGetter__('signalingState', function () {
return this.pc.signalingState;
});
PeerConnection.prototype.__defineGetter__('iceConnectionState', function () {
return this.pc.iceConnectionState;
});
if (PeerConnection.prototype.__defineGetter__) {
PeerConnection.prototype.__defineGetter__('signalingState', function () {
return this.pc.signalingState;
});
PeerConnection.prototype.__defineGetter__('iceConnectionState', function () {
return this.pc.iceConnectionState;
});
}

@@ -75,0 +77,0 @@ // Add a stream to the peer connection object

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