Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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
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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.