turbo-pancake
v0.0.2
Published
server sent events for nodejs and express
Downloads
4
Readme
turbo-pancake
Installation
$ npm install turbo-pancake --save
Usage (with express)
// require sse
var sse = require('turbo-pancake');
var express = require('express');
var app = express();
app.get('/events', sse, function(req, res) {
// res.sse is made available via the middleware
res.sse('content', 'optional_id');
});