feat(nbstore): allow polling protocol (#11160)

This commit is contained in:
EYHN
2025-03-25 08:15:22 +00:00
parent 583bbf3463
commit dda3103d1b
5 changed files with 27 additions and 8 deletions
@@ -10,6 +10,7 @@ import {
} from './socket';
interface CloudAwarenessStorageOptions {
isSelfHosted: boolean;
serverBaseUrl: string;
type: SpaceType;
id: string;
@@ -22,7 +23,10 @@ export class CloudAwarenessStorage extends AwarenessStorageBase {
super();
}
connection = new SocketConnection(this.options.serverBaseUrl);
connection = new SocketConnection(
this.options.serverBaseUrl,
this.options.isSelfHosted
);
private get socket() {
return this.connection.inner.socket;