disconnect log

This commit is contained in:
Ben Wilson
2023-08-01 22:44:45 -04:00
parent 5dd1fa3dfa
commit 4f507b9aac
+6
View File
@@ -69,7 +69,11 @@ export class StratumV1Service implements OnModuleInit {
const clientCount = await this.clientService.connectedClientCount(); const clientCount = await this.clientService.connectedClientCount();
console.log(`Client disconnected: ${promiseSocket.socket.remoteAddress}, ${client.extraNonceAndSessionId}, ${clientCount} total clients`); console.log(`Client disconnected: ${promiseSocket.socket.remoteAddress}, ${client.extraNonceAndSessionId}, ${clientCount} total clients`);
console.log(error);
}); });
promiseSocket.socket.on('error', async (error: Error) => { promiseSocket.socket.on('error', async (error: Error) => {
@@ -81,6 +85,8 @@ export class StratumV1Service implements OnModuleInit {
const clientCount = await this.clientService.connectedClientCount(); const clientCount = await this.clientService.connectedClientCount();
console.log(`Client disconnected, socket error: ${promiseSocket.socket.remoteAddress}, ${client.extraNonceAndSessionId}, ${clientCount} total clients`); console.log(`Client disconnected, socket error: ${promiseSocket.socket.remoteAddress}, ${client.extraNonceAndSessionId}, ${clientCount} total clients`);
console.log(error);
}); });
}).listen(3333, () => { }).listen(3333, () => {