Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2020-03-23 19:08:54 +02:00
1 parent 8e25991f63
commit 6d3f20b9f6
1 file changed
+1
+1
View File
@@ -51,6 +51,7 @@ class ApiWatcher {
// convert to "text/event-stream" format
this.response.write(`data: ${JSON.stringify(evt)}\n\n`);
if (autoFlush) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
this.response.flush()
}