connect-sse

connect middleware for server sent events (EventSource)

npm install connect-sse
5 downloads in the last week
50 downloads in the last month

Build Status

Usage:

var sse, express, app;

sse = require('connect-sse')();
express = require('express')

app = express()
app.get('/events', sse, function (req, res) {
  res.json("this is an event");
  res.json({here: "is", another: "event"});
});
npm loves you