feat: emit reconnect

This commit is contained in:
cha0s 2020-05-26 06:21:09 -05:00
parent 27600e8bf0
commit 0720b697a4

View File

@ -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;
}