streamer.on('finished', callback) Sample streamer.on("finished", () => { // when you stream an audio file, this event tells you that the streaming has finished });