RunOnFlux / flux

Flux, Your Gateway to a Decentralized World. https://home.runonflux.io https://api.runonflux.io https://docs.runonflux.io https://source.runonflux.io https://wiki.runonflux.io
https://home.runonflux.io
GNU Affero General Public License v3.0
232 stars 309 forks source link

Flushing write calls to improve access to server-side event streams #1378

Closed sygem closed 3 months ago

sygem commented 3 months ago

Unless immediately followed by a res.end(), all calls to res.write() are now followed by a call to res.flush().

These flush calls are guarded to prevent errors if the compression middleware is not present for some reason.

Cabecinha84 commented 3 months ago

You can test in like 15m against a dev node. Cheers