express-sse icon indicating copy to clipboard operation
express-sse copied to clipboard

Remove res.flush

Open okkedek opened this issue 4 years ago • 2 comments

Removes res.flush(), causes error on express 4.17 (TypeError: res.flush is not a function) and occurs on res.write anyway.

okkedek avatar Jan 22 '21 13:01 okkedek

A decent workaround is to just add a res.flush that express-sse can call that and have it do nothing, roughly:

res.flush = () => undefined;

t3hmrman avatar Feb 19 '21 15:02 t3hmrman

@okkedek @t3hmrman @dpskvn res.flush() is deprecated. Use res.flushHeaders() instead.

- res.flush()
+ (res.flushHeaders || res.flush )()

x1unix avatar Dec 03 '21 02:12 x1unix