Socket.io-Stream does not broadcast events

Asked

Viewed 38 times

1

I have a client application that sends files through socket to my server, these files arrive as stream through Socket.io-stream, and I write them on disk without any problem everything was going well, until I have to perform a treatment on each file after its written, while trying to detect the events I realized that there was none of them, someone has any idea what might be going on ?

const fileStream = fs.createWriteStream(filename);

  socketStream.pipe(fileStream);

  fileStream.on('close', ()=>{
     console.log('close.');
  });

  fileStream.on('finish', ()=>{
    console.log('Finalizado.');
  });
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.