feat: emit reconnect
This commit is contained in:
parent
27600e8bf0
commit
0720b697a4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user