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

@norskvideo/webrtc-client

Package Overview
Dependencies
Maintainers
6
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@norskvideo/webrtc-client - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

6

lib/cjs/webrtc.js

@@ -50,3 +50,4 @@ "use strict";

const localOffer = yield client.createOffer();
yield client.setLocalDescription(localOffer);
// Previously set local description here, starting ICE candidate gathering earlier.
// Could potentially still do this when ICE servers are explicitly configured.
console.debug("received local offer, sending to server", localOffer);

@@ -72,2 +73,4 @@ let response = yield fetch(this.endpointUrl, {

console.log("Got response", { remoteOffer, sessionUrl });
// Set local description after configuring ICE servers returned in Link header
yield client.setLocalDescription(localOffer);
const remoteResponse = yield client.setRemoteDescription({

@@ -79,2 +82,3 @@ type: "answer",

console.log("Peer connection state", client);
// Currently there should be no cached candidates
this.sendCachedCandidates();

@@ -81,0 +85,0 @@ });

@@ -47,3 +47,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

const localOffer = yield client.createOffer();
yield client.setLocalDescription(localOffer);
// Previously set local description here, starting ICE candidate gathering earlier.
// Could potentially still do this when ICE servers are explicitly configured.
console.debug("received local offer, sending to server", localOffer);

@@ -69,2 +70,4 @@ let response = yield fetch(this.endpointUrl, {

console.log("Got response", { remoteOffer, sessionUrl });
// Set local description after configuring ICE servers returned in Link header
yield client.setLocalDescription(localOffer);
const remoteResponse = yield client.setRemoteDescription({

@@ -76,2 +79,3 @@ type: "answer",

console.log("Peer connection state", client);
// Currently there should be no cached candidates
this.sendCachedCandidates();

@@ -78,0 +82,0 @@ });

2

package.json
{
"name": "@norskvideo/webrtc-client",
"version": "0.1.1",
"version": "0.1.2",
"description": "WHIP/WHEP/duplex WebRTC client for Norsk integration",

@@ -5,0 +5,0 @@ "main": "lib/cjs/webrtc.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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