mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 21:41:52 +08:00
feat(core): new worker workspace engine (#9257)
This commit is contained in:
@@ -15,12 +15,7 @@ export class BroadcastChannelConnection extends AutoReconnectConnection<Broadcas
|
||||
return new BroadcastChannel(this.channelName);
|
||||
}
|
||||
|
||||
override doDisconnect() {
|
||||
this.close();
|
||||
}
|
||||
|
||||
private close(error?: Error) {
|
||||
this.maybeConnection?.close();
|
||||
this.setStatus('closed', error);
|
||||
override doDisconnect(channel: BroadcastChannel) {
|
||||
channel.close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user