mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 21:38:44 +08:00
fix(core): disconnect ws when user logout (#8188)
This commit is contained in:
@@ -219,4 +219,9 @@ export class DocEngine {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
dispose() {
|
||||
this.stop();
|
||||
this.server?.dispose?.();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,4 +23,6 @@ export interface DocServer {
|
||||
waitForConnectingServer(signal: AbortSignal): Promise<void>;
|
||||
disconnectServer(): void;
|
||||
onInterrupted(cb: (reason: string) => void): void;
|
||||
|
||||
dispose?(): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user