To fix a context reference you could also add a closure: https://gist.github.com/Warry/537fb8b6a48fb3578746#file-gistfile1-js-L12

But I this the most elegant solution is to send `this` to the stream then rename receive to handler: https://gist.github.com/Warry/537fb8b6a48fb3578746#file-gistfile2-js-L47