SHARE
TWEET

Untitled

a guest Jun 25th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. stream = fs.createReadStream('./sounds/'+musics_list[Math.floor((Math.random() * (vocals.length-1)) + 0)]);
  2.  
  3. stream.on('end', () => {
  4.     //eu imagino que aqui eu fa├ža reset do pipe e entregue o novo ReadStream.
  5. });
  6.  
  7. stream.pipe(res)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top