feat(nbstore): share worker between workspaces (#9947)

This commit is contained in:
EYHN
2025-02-05 07:57:03 +00:00
parent 972d76d685
commit ee0cfe4dc7
30 changed files with 430 additions and 434 deletions
@@ -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> {