Socket.io-Stream does not issue events

1

I have a client application that sends files through the socket to my server, these files arrive as stream through Socket.io-stream, and I write them to the disk without any problem everything was fine, until I have to perform a treatment in each file after writing, when trying to detect the events I realized that there was none of them, does anyone have an idea of what might be happening?

const fileStream = fs.createWriteStream(filename);

  socketStream.pipe(fileStream);

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

  fileStream.on('finish', ()=>{
    console.log('Finalizado.');
  });
    
asked by anonymous 27.09.2016 / 18:19

0 answers