Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
websockets-streaming-audio
Advanced tools
Click a browser button to launch a node.js process on the server side which streams audio using web sockets back to the browser which is then rendered using web audio API My plan is to make this modular enough to get added to your process as simple API
stream audio to a Web Audio API enabled browser from Node.js server using Web Worker and Web Socket
plan is to make this modular enough to get added to your process as simple API calls - using Angularjs ;-)
I have now introduced a Web Worker to handle all server side calls - this fixed glitches of early versions suffered due to the single threaded browser
basic architecture :
Browser <--> Web Worker <--> Web Socket <--> Node.js
state transition sequence
mode 1
mode 2
mode 3
Installation
visit nodejs.org and install node.js
see project npm site at
https://www.npmjs.org/package/websockets-streaming-audio
Clone this repository to your local machine:
npm install websockets-streaming-audio
Change directory into the project folder to install the upstream modules:
cd node_modules/websockets-streaming-audio
npm install
Launch the nodejs app:
npm start
NODE_ENV=dev npm start
NODE_ENV=production npm start
Using a Web Audio API savvy browser (ff/chrome), point it at URL :
then click one of the stream buttons, after a song has played click reload before hitting another stream button - I am still learning front ends ;-)
... OR ignore above and just see this app deployed live on my vm:
Current Limitations
Lessons Learned
Feel free to contact me via the github Issues forum if you have any questions! :-) ... my twitter name is same as my github name
FAQs
Click a browser button to launch a node.js process on the server side which streams audio using web sockets back to the browser which is then rendered using web audio API My plan is to make this modular enough to get added to your process as simple API
The npm package websockets-streaming-audio receives a total of 101 weekly downloads. As such, websockets-streaming-audio popularity was classified as not popular.
We found that websockets-streaming-audio demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.