Skip to content

Commit

Permalink
feat: Updated index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Apr 10, 2024
1 parent 782eb9c commit 12d5f60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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)

Expand Down

0 comments on commit 12d5f60

Please sign in to comment.