fix: add collabration cursor (#865)

This commit is contained in:
zuomeng wang
2023-02-07 17:10:39 +08:00
committed by GitHub
parent 285b535a54
commit 036e514eb5

View File

@@ -173,6 +173,8 @@ export class AffineProvider extends BaseProvider {
}://${window.location.host}/api/sync/`;
ws = new WebsocketProvider(wsUrl, room, doc, {
params: { token: this._apis.token.refresh },
// @ts-expect-error ignore the type
awareness: workspace.awarenessStore.awareness,
});
this._wsMap.set(workspace, ws);
}