1.0.0 • Published 8 years ago
spawn2sse v1.0.0
spawn2sse
Expose spawn to Server Sent Events
Example
var spawn2sse = require('spawn2sse');
var app = spawn2sse(function(req, res, func) {
var url = req.body.url;
if(!url) {
return res.end('no url');
}
func('curl', ['--', url]);
});
app.listen(3000);
1.0.0
8 years ago