node-ssestream icon indicating copy to clipboard operation
node-ssestream copied to clipboard

Send Server-Sent Events with a stream

Results 8 node-ssestream issues
Sort by recently updated
recently updated
newest added

Add header 'X-Accel-Buffering: no' to tell Nginx to disable buffering. wiki.nginx.org/X-accel#X-Accel-Buffering

``` SseStream = require('ssestream') console.info(SseStream) new SseStream() ``` { default: [Function: SseStream] } TypeError: SseStream is not a constructor

Apart from { objectMode: true }, it would be useful to have the ability to set other options at the construction of the Transform stream. For example, being able to...

Added a new (optional) argument to the `pipe()` function that adds the ability to replace the default HTTP headers for the request, or add custom ones. Includes additional test and...

This is needed for proxies that interfere with the request (by doing things such as caching). This was the case with the `create-react-app`, when proxying requests to the dev-server backend...

Work without call of stream.write if run with `bun dev` not work if run `with bun -b dev`. To work need to add stream.write(). ``` const sse = require('https://github.com/EventSource/node-ssestream/blob/master/index.ts'); const...

When I use example to run the program, I will be prompted TypeError: SseStream is not a constructor at D:\serialport\eventsource-master\example\sse-server.js:10:20 at Layer.handle [as handle_request] (D:\serialport\eventsource-master\node_modules\express\lib\router\layer.js:95:5) at next (D:\serialport\eventsource-master\node_modules\express\lib\router\route.js:137:13) at Route.dispatch...

The header 'Transfer-Encoding: identity' is not standard and when the Node.js app is behind an Nginx reverse proxy, it returns 502, because newer versions of Nginx do not support this...