sse-express
sse-express copied to clipboard
Server Sent Events middleware implementation for expressjs
Hi I had to add _res.flush();_ into the sse function being appended to the response object in order to have the SSE be delivered to the browser: ` res.sse =...
Hi, I am having that issue when using sse-express inside an Express router. The issue says it's present at the node_modules folder. I tried deleting and creating that folder again,...
Hi, first it says: `res.sse({ event: 'connected', data: { welcomeMsg: 'Hello world!' } } );` But then, the API says: `res.sse({data, [event], [id]} | Array)` Could you please fix the...
Create type map for TypeScript and release it in https://github.com/DefinitelyTyped/DefinitelyTyped
Add ability to group connections by rooms and send events to this group. Something like: ```javascript let sseExpress = require('./sse-express'); //... app.get('/join-room', function(req, res) { res.sse.join('room-name'); // joins connection to...
Add link to stackoverflow on when to use sse Add info about examle Add more references to articles and specs Add browser support Make more visible accent on headers/query options...
Add release notes (changes) after merging [v2](https://github.com/likerRr/sse-express/tree/v2) into [master](https://github.com/likerRr/sse-express/tree/v2)
* [ ] Add unit tests for middleware * [ ] Update live tests
https://github.com/zeit/micro