mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-09 05:05:52 +08:00
feat(nbstore): allow polling protocol (#11160)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user