Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@arcware/webrtc-plugin
Advanced tools
Javascript/Typescript module to connect any frontend to Unreal Engine 4 app with pixel streaming enabled through signalling WS.
Javascript/Typescript module to connect any frontend to Unreal Engine 4 app with pixel streaming enabled through signalling WS.
import { WebRTCClient } from "@arcware/webrtc-plugin";
// Vue template
<div ref="sizeContainer">
<div ref="videoContainer">
<video ref="videoRef" />
</div>
</div>
// React template
const sizeContainerRef = React.useRef();
const containerRef = React.useRef();
const videoRef = React.useRef();
<div ref={sizeContainerRef}>
<div ref={containerRef}>
<video ref={videoElRef} />
</div>
</div>;
// Angular template
<div #sizeContainer>
<div #container>
<video #videoEl></video>
</div>
</div>
@ViewChild("videoEl") inputVideo!: ElementRef;
@ViewChild("container") container!: ElementRef;
@ViewChild("sizeContainer") sizeContainer!: ElementRef;
// Initialize WebRTC
const args = {
address: "Signalling WS URL",
packageId: "Name of the package (if there are multiple applications)",
settings: {},
// --- Containers Options ---
// Vue
sizeContainer: this.$refs.sizeContainer,
container: this.$refs.videoContainer,
videoRef: this.$refs.videoRef,
// React
sizeContainer: sizeContainerRef,
container: containerRef,
videoRef: videoRef,
// Angular
sizeContainer: this.sizeContainer.nativeElement,
container: this.container.nativeElement,
videoRef: this.inputVideo.nativeElement,
// --- ---
playOverlay: true, // Set default overlay with play button. Make it false and use loader
loader: (val) => {}, // Callback for loading screen, etc. Once stream is ready, the function will be triggered with false value.
applicationResponse: (obj) => {}, // Callback for Unreal Engine application messages.
};
const webrtc_client = new WebRTCClient(args);
const emitUIInteraction = webrtc_client.emitUIInteraction; // Method to send descriptors to UE4 app
// <script> with index.html implementation
<head>
<script src="https://unpkg.com/@arcware/webrtc-plugin@latest/webrtc-plugin.umd.js"></script>
</head>
<body style="background: black; margin: 50px">
<script>
window.addEventListener("load", function () {
const args = {
address: "Signalling WS URL",
packageId: "id/alias of the package",
settings: {},
sizeContainer: "container",
playOverlay: true, // play button before stream runs
};
this.webrtc = new window.WebrtcPlugin.WebRTCClient(args);
});
</script>
<div id="container"></div>
</body>
Please follow to WebRTCClientProps
interface exported from module to check properties types
FAQs
### Getting started
We found that @arcware/webrtc-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.