server: fix failedPings counter
This commit is contained in:
@@ -70,7 +70,7 @@ export default class SocketHandler {
|
|||||||
});
|
});
|
||||||
|
|
||||||
ws.on('pong', () => {
|
ws.on('pong', () => {
|
||||||
this.failedPings = 0;
|
this.connections[ws.id].failedPings = 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
this._fire('join', ws);
|
this._fire('join', ws);
|
||||||
|
|||||||
Reference in New Issue
Block a user