feat: emit reconnect
This commit is contained in:
parent
27600e8bf0
commit
0720b697a4
|
@ -101,7 +101,8 @@ export class SocketClient extends decorate(class {}) {
|
||||||
const tryToReconnect = () => {
|
const tryToReconnect = () => {
|
||||||
debug('try to reconnect');
|
debug('try to reconnect');
|
||||||
if (this.isConnected) {
|
if (this.isConnected) {
|
||||||
debug('is connected');
|
debug('reconnected');
|
||||||
|
this.emit('reconnect');
|
||||||
this.isReconnecting = false;
|
this.isReconnecting = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user