From 12d5f606c4d43db8006bf7c1314373a68c1a3e7b Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Wed, 10 Apr 2024 16:22:44 +0000 Subject: [PATCH] feat: Updated index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 51961880..34311c87 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,6 @@ const express = require('express'), app = express(), http = require('http').createServer(app), - io = require('socket.io')(http), path = require('path'), fs = require('fs') var all_requests = 0, @@ -25,7 +24,8 @@ setInterval(async() => { })) } - io.emit('requests', all_requests, per_requests, JSON.parse(config).max_requests) + // Previously: io.emit('requests', all_requests, per_requests, JSON.parse(config).max_requests) + // This will be replaced with SSE logic per_requests = 0 }, 1000)