
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
web-audio-workers-sockets
Advanced tools
stream audio using web sockets in web worker rendered using web audio
stream audio using web sockets in web worker rendered using web audio
The goal is to stream audio from server to browser to be rendered using web audio. Without using webworkers, my experience is the audio gets choppy when the single thread of the browser is used for everything (streaming sockets / audio rendering)
I have discovered firefox fails to allow websockets from inside a webworker, yet this is OK on chrome. Also, no browser supports web audio from a webworker. So I will see if I can eliminate this choppy audio issue by creating a sandwich :
websocket <--> webworker <--> webaudio
... but first I will attempt to get a smooth audio rendering using just websockets + web audio
Dependencies include node/npm
npm install -g web-audio-workers-sockets
cd $NODE_PATH/web-audio-workers-sockets
npm start
... or if you prefer to have the git repo local :
git clone git@github.com:scottstensland/web-audio-workers-sockets.git
cd web-audio-workers-sockets
npm install # install the dependent modules
npm start
Using a web audio/web worker/websocket savvy browser, point it at URL :
http://localhost:8888
As of today - August 26th 2014 - only chrome works on linux, firefox (34.0a1 (2014-08-04)) fails since it cannot yet handle launching a websocket from a webworker thread. Opera also fails on lack of web audio.
FAQs
stream audio using web sockets in web worker rendered using web audio
The npm package web-audio-workers-sockets receives a total of 5 weekly downloads. As such, web-audio-workers-sockets popularity was classified as not popular.
We found that web-audio-workers-sockets demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.