@kne/fastify-message 1.0.8 → 1.0.9
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/libs/controllers/main.js +1 -2
- package/package.json +1 -1
package/libs/controllers/main.js
CHANGED
|
@@ -257,9 +257,8 @@ module.exports = fp(async (fastify, options) => {
|
|
|
257
257
|
}
|
|
258
258
|
},
|
|
259
259
|
async function (request, reply) {
|
|
260
|
-
const intervalSeconds = request.query.interval;
|
|
260
|
+
const intervalSeconds = request.query.interval ?? 5;
|
|
261
261
|
const { timezone } = request.query;
|
|
262
|
-
reply.sse.keepAlive();
|
|
263
262
|
|
|
264
263
|
async function* eventStream() {
|
|
265
264
|
while (reply.sse.isConnected) {
|