Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Koa2 examples of streaming? #94

Open
kristianmandrup opened this issue Oct 20, 2016 · 2 comments
Open

Koa2 examples of streaming? #94

kristianmandrup opened this issue Oct 20, 2016 · 2 comments

Comments

@kristianmandrup
Copy link

I'm mostly interested in the stream-view and SSE examples. Thanks.

https://github.com/koajs/examples/blob/master/stream-view/view.js

@bananaappletw
Copy link
Contributor

@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?

@kristianmandrup
Copy link
Author

kristianmandrup commented Oct 22, 2016

I managed to make a Koa2 stream renderer for use with Vue2 SSR.

koa-vue-builder architecture

stream writer

ctx.body = stream.pipe(htmlWriter);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants