koa-sse

Server-Sent Events utility for koa

koa-sse

var koa = require('koa');
var sse = require('koa-sse');
 
var app = koa();
 
app.use(sse());
app.use(function*(){
  this.sse(someStreamStream());
});
 
app.listen(3000);
$ npm install koa-sse

Add this.see to contexts.

Options are passed down to sse-stream.

MIT