diff --git a/frontend/viewer/src/CrdtProjectView.svelte b/frontend/viewer/src/CrdtProjectView.svelte
index a7f0d8b81..ca9fc1585 100644
--- a/frontend/viewer/src/CrdtProjectView.svelte
+++ b/frontend/viewer/src/CrdtProjectView.svelte
@@ -15,7 +15,10 @@
.catch(err => console.error(err));
onDestroy(() => connection.stop());
setContext('project-name', projectName);
- SetupSignalR(connection);
+ SetupSignalR(connection, {
+ history: true,
+ write: true,
+ });
let connected = false;
diff --git a/frontend/viewer/src/FwDataProjectView.svelte b/frontend/viewer/src/FwDataProjectView.svelte
index d58dc9a30..3b7fff518 100644
--- a/frontend/viewer/src/FwDataProjectView.svelte
+++ b/frontend/viewer/src/FwDataProjectView.svelte
@@ -15,7 +15,10 @@
.catch(err => console.error(err));
onDestroy(() => connection.stop());
setContext('project-name', projectName);
- SetupSignalR(connection);
+ SetupSignalR(connection, {
+ history: false,
+ write: true,
+ });
let connected = false;
-
+
diff --git a/frontend/viewer/src/lib/services/service-provider-signalr.ts b/frontend/viewer/src/lib/services/service-provider-signalr.ts
index 790270921..8e2b7812a 100644
--- a/frontend/viewer/src/lib/services/service-provider-signalr.ts
+++ b/frontend/viewer/src/lib/services/service-provider-signalr.ts
@@ -5,16 +5,13 @@ import type { HubConnection } from '@microsoft/signalr';
import type { LexboxApiFeatures, LexboxApiMetadata } from './lexbox-api';
import {LexboxService} from './service-provider';
-export function SetupSignalR(connection: HubConnection) {
+export function SetupSignalR(connection: HubConnection, features: LexboxApiFeatures) {
const hubFactory = getHubProxyFactory('ILexboxApiHub');
const hubProxy = hubFactory.createHubProxy(connection);
const lexboxApiHubProxy = Object.assign(hubProxy, {
SupportedFeatures(): LexboxApiFeatures {
- return {
- history: true,
- write: true,
- };
+ return features;
}
} satisfies LexboxApiMetadata);
getReceiverRegister('ILexboxClient').register(connection, {