owlservable 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -341,7 +341,7 @@ function startDashboard(port) {
|
|
|
341
341
|
|
|
342
342
|
if (urlPath === '/events') {
|
|
343
343
|
try { req.socket.setNoDelay(true) } catch (_) {}
|
|
344
|
-
res.writeHead(200, { 'Content-Type': 'text/event-stream', 'Cache-Control': 'no-cache', 'Connection': 'keep-alive' })
|
|
344
|
+
res.writeHead(200, { 'Content-Type': 'text/event-stream', 'Cache-Control': 'no-cache', 'Connection': 'keep-alive', 'X-Accel-Buffering': 'no' })
|
|
345
345
|
const send = d => { try { res.write('data: ' + JSON.stringify(d) + '\n\n') } catch (_) {} }
|
|
346
346
|
send({ type: 'init', requests: getRequests(), save: getSaveInfo() })
|
|
347
347
|
const onReq = r => send({ type: 'request', record: r })
|
package/index.js
CHANGED
|
@@ -341,7 +341,7 @@ function startDashboard(port) {
|
|
|
341
341
|
|
|
342
342
|
if (urlPath === '/events') {
|
|
343
343
|
try { req.socket.setNoDelay(true) } catch (_) {}
|
|
344
|
-
res.writeHead(200, { 'Content-Type': 'text/event-stream', 'Cache-Control': 'no-cache', 'Connection': 'keep-alive' })
|
|
344
|
+
res.writeHead(200, { 'Content-Type': 'text/event-stream', 'Cache-Control': 'no-cache', 'Connection': 'keep-alive', 'X-Accel-Buffering': 'no' })
|
|
345
345
|
const send = d => { try { res.write('data: ' + JSON.stringify(d) + '\n\n') } catch (_) {} }
|
|
346
346
|
send({ type: 'init', requests: getRequests(), save: getSaveInfo() })
|
|
347
347
|
const onReq = r => send({ type: 'request', record: r })
|