mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 18:09:58 +08:00
feat(nbstore): share worker between workspaces (#9947)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { share } from '../../connection';
|
||||
import {
|
||||
type AwarenessRecord,
|
||||
AwarenessStorageBase,
|
||||
@@ -23,10 +22,10 @@ export class CloudAwarenessStorage extends AwarenessStorageBase {
|
||||
super();
|
||||
}
|
||||
|
||||
connection = share(new SocketConnection(`${this.options.serverBaseUrl}/`));
|
||||
connection = new SocketConnection(`${this.options.serverBaseUrl}/`);
|
||||
|
||||
private get socket() {
|
||||
return this.connection.inner;
|
||||
return this.connection.inner.socket;
|
||||
}
|
||||
|
||||
override async update(record: AwarenessRecord): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user