Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
aframe-broadcast-component
Advanced tools
A component to send and consume entity data over WebSockets for simple multiuser A-Frame.
The provided server simply relays all broadcasted data through WebSockets to the rest of the clients.
When the broadcast
component is attached to an entity, it will emit all
specified component data, the entity ID, and the parent's ID to the WebSocket
server once every 10ms (will be adjustable later).
When another client receives that data, it uses it to create an element with
the ID if it doesn't exist, and then sync the component data to the entity with
setAttribute
.
Property | Description | Default Value |
---|---|---|
send | List of comma-delimited component names to broadcast | position, rotation |
url | WebSocket server URL | http://localhost:12000 |
There is a simple Node socket.io
server in server/
.
PORT=12000 node index.js
Install and use by directly including the browser files:
<head>
<title>My A-Frame Scene</title>
<script src="https://aframe.io/releases/0.2.0/aframe.min.js"></script>
<script src="https://rawgit.com/ngokevin/aframe-broadcast-component/master/dist/aframe-broadcast-component.min.js"></script>
</head>
<body>
<a-scene broadcast="http://myserver.com:12000">
<a-entity broadcast="send: geometry, material, position, rotation"
camera look-controls wasd-controls
geometry="primitive: box"
material="color: #222"
position="0 1.8 5"></a-entity>
</a-scene>
</body>
Install via NPM:
npm install aframe-broadcast-component
Then register and use.
require('aframe');
require('aframe-broadcast-component');
FAQs
Broadcast component for A-Frame.
The npm package aframe-broadcast-component receives a total of 1 weekly downloads. As such, aframe-broadcast-component popularity was classified as not popular.
We found that aframe-broadcast-component 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.