I am using multer for file uploading. On the server I have this:
stream.on('finish', () => {
console.log('finished')
next()
})
What would be the best way (with what command) to notify the frontend that 'finished' has happened? I want to know this in order to have a loading bar.