replaces final promise with a callback for live streaming to the browser