How do I stream data to browsers with Hapi?
问题 I'm trying to use streams to send data to the browser with Hapi, but can't figure our how. Specifically I am using the request module. According to the docs the reply object accepts a stream so I have tried: reply(request.get('https://google.com')); The throws an error. In the docs it says the stream object must be compatible with streams2, so then I tried: reply(streams2(request.get('https://google.com'))); Now that does not throw a server side error, but in the browser the request never