mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-05-30 18:11:07 +00:00
Log backend connections
This commit is contained in:
@@ -33,6 +33,14 @@ incomingTelemetry.on('connection', async (socket, req) => {
|
||||
}
|
||||
});
|
||||
|
||||
function logClients() {
|
||||
const feed = telemetryFeed.clients.size;
|
||||
const node = incomingTelemetry.clients.size;
|
||||
|
||||
console.log(`[System] ${feed} open telemetry connections; ${node} open feed connections`);
|
||||
}
|
||||
|
||||
|
||||
telemetryFeed.on('connection', (socket: WebSocket) => {
|
||||
aggregator.addFeed(new Feed(socket));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user