see source code

https://github.com/scottstensland/websockets-streaming-audio

click on button stream 13
to stream audio to your Web Audio API enabled browser from a nodejs server side using Web Worker and Web Socket