
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
react-rtc is a react component that uses firebase to establish webRTC connections.
/** @jsx React.DOM */
var Firebase = require('firebase');
var React = require('react');
var Rtc = require('react-rtc');
var myFirebaseRef = new Firebase('https://someFbApp.firebaseio.com');
var VideoComponent = React.createClass({
componentWillReceiveProps: function(newProps) {
if (this.props.remoteVideo !== newProps.remoteVideo)
this.setState({src: URL.createObjectURL(newProps.remoteVideo)});
},
render: function() {
return <video src={this.state.src} />
}
});
// Then use it like this:
<Rtc id="myId" fb={myFirebaseRef}>
<VideoComponent key="sharedKey">
<VideoComponent key="anotherKeySharedWithAnotherClient">
</Rtc>
Rtc
requires id
and fb
props. It can also take a component
prop which decides what DOM element child components will render in. It will default to a DIV element. id
must be unique amongst all clients/browsers who share the same firebase ref.
Child components require a key
component. Whenever a child component in another browser has the same key, they will establish a webRTC connection, and the child will get two new props injected: localStream
and remoteStream
. These are webRTC media streams.
FAQs
React firebase webrtc mockup
The npm package react-rtc receives a total of 4 weekly downloads. As such, react-rtc popularity was classified as not popular.
We found that react-rtc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.