fix(core): update
This commit is contained in:
parent
765bc73197
commit
5e64f4ca25
@ -33,7 +33,7 @@ export class SmartsocketClient {
|
|||||||
public serverPort: number;
|
public serverPort: number;
|
||||||
public autoReconnect: boolean;
|
public autoReconnect: boolean;
|
||||||
|
|
||||||
public eventSubject = new plugins.smartrx.rxjs.Subject();
|
public eventSubject = new plugins.smartrx.rxjs.Subject<interfaces.TConnectionEvent>();
|
||||||
|
|
||||||
public socketFunctions = new plugins.lik.Objectmap<SocketFunction<any>>();
|
public socketFunctions = new plugins.lik.Objectmap<SocketFunction<any>>();
|
||||||
public socketRequests = new plugins.lik.Objectmap<SocketRequest<any>>();
|
public socketRequests = new plugins.lik.Objectmap<SocketRequest<any>>();
|
||||||
@ -135,6 +135,7 @@ export class SmartsocketClient {
|
|||||||
}
|
}
|
||||||
defaultLogger.log('warn', `disconnected from server ${this.remoteShortId}`);
|
defaultLogger.log('warn', `disconnected from server ${this.remoteShortId}`);
|
||||||
this.remoteShortId = null;
|
this.remoteShortId = null;
|
||||||
|
this.eventSubject.next('terminated');
|
||||||
|
|
||||||
if (this.autoReconnect) {
|
if (this.autoReconnect) {
|
||||||
this.tryDebouncedReconnect();
|
this.tryDebouncedReconnect();
|
||||||
|
Loading…
Reference in New Issue
Block a user