Open kristianmandrup opened 8 years ago
@hemanth There is no koa2 example in this repo. This should create another koa2 branch like koa.js? Or just separate into two repos? Then try to migrate original koa.js example to koa2?
I managed to make a Koa2 stream renderer for use with Vue2 SSR.
ctx.body = stream.pipe(htmlWriter);
I'm mostly interested in the stream-view and SSE examples. Thanks.
https://github.com/koajs/examples/blob/master/stream-view/view.js