Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@norskvideo/webrtc-client
Advanced tools
A simple client wrapper to initiate WebRTC connections via WHIP, WHEP and the similar internal duplex protocol for Norsk.
In the case of WHIP and WHEP, this package is provided in case it might be useful, but does not aim to be a fully general solution - there are other JS libraries supporting WHIP and WHEP, as well as non-browser alternatives. This implementation is tested with Norsk and used for internal test pages.
In the case of the Norsk duplex protocol - which is ultimately very similar to WHIP and WHEP - this code should provide a suitable integration point. In that case there are no real alternatives other than deriving your own implementation, or simply making separate webrtc connections for ingest and egest.
Create a client:
let myClient = new WhepClient({url: "subscribe"});
or
let myClient = new WhipClient({url: "publish"});
or
let myClient = new DuplexClient({url: "subscribe"});
Then start the client as required:
await myClient.start();
For WHEP and Duplex clients you can optionally provide a container
element, to which an appropriate video element will be added, and also optionally set up for simulcast video:
new WhepClient({url: "subscribe", container: document.getElementById('container'), simulcastVideoCount: 3 });
Otherwise you will find the created RTCPeerConnection
can be accessed and used as normal:
myClient.client.addEventListener('track', (event) => console.log(event));
FAQs
WHIP/WHEP/duplex WebRTC client for Norsk integration
The npm package @norskvideo/webrtc-client receives a total of 39 weekly downloads. As such, @norskvideo/webrtc-client popularity was classified as not popular.
We found that @norskvideo/webrtc-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.