mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
disconnect log
This commit is contained in:
@@ -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, () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user