mirror of
https://github.com/coder/code-server.git
synced 2025-07-28 20:43:24 +08:00
fix(connection): onClose -> onDidDispose protocol
This commit is contained in:
@ -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