From 0720b697a4e3cc100e75d00b2b5fb41a3bd77263 Mon Sep 17 00:00:00 2001 From: cha0s Date: Tue, 26 May 2020 06:21:09 -0500 Subject: [PATCH] feat: emit reconnect --- packages/net/client/socket.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/net/client/socket.js b/packages/net/client/socket.js index ab1aa35..b24beaa 100644 --- a/packages/net/client/socket.js +++ b/packages/net/client/socket.js @@ -101,7 +101,8 @@ export class SocketClient extends decorate(class {}) { const tryToReconnect = () => { debug('try to reconnect'); if (this.isConnected) { - debug('is connected'); + debug('reconnected'); + this.emit('reconnect'); this.isReconnecting = false; return; }