fix(connection): onClose -> onDidDispose protocol
This commit is contained in:
parent
52acb50ed7
commit
1bf3036597
@ -54,7 +54,7 @@ export abstract class Connection {
|
|||||||
export class ManagementConnection extends Connection {
|
export class ManagementConnection extends Connection {
|
||||||
public constructor(protected protocol: Protocol, token: string) {
|
public constructor(protected protocol: Protocol, token: string) {
|
||||||
super(protocol, token);
|
super(protocol, token);
|
||||||
protocol.onClose(() => this.dispose()); // Explicit close.
|
protocol.onDidDispose(() => this.dispose()); // Explicit close.
|
||||||
protocol.onSocketClose(() => this.setOffline()); // Might reconnect.
|
protocol.onSocketClose(() => this.setOffline()); // Might reconnect.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user