@fluidframework/datastore 2.70.0-361248 → 2.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/api-report/datastore.legacy.beta.api.md +0 -2
- package/dist/dataStoreLayerCompatState.d.ts +3 -2
- package/dist/dataStoreLayerCompatState.d.ts.map +1 -1
- package/dist/dataStoreLayerCompatState.js +2 -18
- package/dist/dataStoreLayerCompatState.js.map +1 -1
- package/dist/dataStoreRuntime.d.ts +2 -8
- package/dist/dataStoreRuntime.d.ts.map +1 -1
- package/dist/dataStoreRuntime.js +13 -32
- package/dist/dataStoreRuntime.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/lib/dataStoreLayerCompatState.d.ts +3 -2
- package/lib/dataStoreLayerCompatState.d.ts.map +1 -1
- package/lib/dataStoreLayerCompatState.js +3 -19
- package/lib/dataStoreLayerCompatState.js.map +1 -1
- package/lib/dataStoreRuntime.d.ts +2 -8
- package/lib/dataStoreRuntime.d.ts.map +1 -1
- package/lib/dataStoreRuntime.js +14 -33
- package/lib/dataStoreRuntime.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.d.ts.map +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/package.json +22 -15
- package/src/dataStoreLayerCompatState.ts +14 -21
- package/src/dataStoreRuntime.ts +22 -45
- package/src/packageVersion.ts +1 -1
- package/dist/localChannelStorageService.d.ts +0 -16
- package/dist/localChannelStorageService.d.ts.map +0 -1
- package/dist/localChannelStorageService.js +0 -54
- package/dist/localChannelStorageService.js.map +0 -1
- package/lib/localChannelStorageService.d.ts +0 -16
- package/lib/localChannelStorageService.d.ts.map +0 -1
- package/lib/localChannelStorageService.js +0 -50
- package/lib/localChannelStorageService.js.map +0 -1
- package/src/localChannelStorageService.ts +0 -62
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @fluidframework/datastore
|
|
2
2
|
|
|
3
|
+
## 2.70.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Remove submitMessage from FluidDataStoreRuntime and MockFluidDataStoreRuntime ([#25755](https://github.com/microsoft/FluidFramework/pull/25755)) [88860f348b](https://github.com/microsoft/FluidFramework/commit/88860f348b0d67f94952d4e2ae227fa0b1f9f942)
|
|
8
|
+
|
|
9
|
+
As needed, access `submitMessage` via `IFluidDataStoreContext`/`IFluidParentContext`. See https://github.com/microsoft/FluidFramework/issues/24406 for details.
|
|
10
|
+
|
|
3
11
|
## 2.63.0
|
|
4
12
|
|
|
5
13
|
Dependency updates only.
|
|
@@ -93,8 +93,6 @@ export class FluidDataStoreRuntime extends TypedEventEmitter<IFluidDataStoreRunt
|
|
|
93
93
|
setAttachState(attachState: AttachState.Attaching | AttachState.Attached): void;
|
|
94
94
|
// (undocumented)
|
|
95
95
|
setConnectionState(connected: boolean, clientId?: string): void;
|
|
96
|
-
// @deprecated
|
|
97
|
-
submitMessage(type: DataStoreMessageType, content: any, localOpMetadata: unknown): void;
|
|
98
96
|
submitSignal(type: string, content: unknown, targetClientId?: string): void;
|
|
99
97
|
summarize(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext): Promise<ISummaryTreeWithStats>;
|
|
100
98
|
updateUsedRoutes(usedRoutes: string[]): void;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import type { ILayerCompatDetails, ILayerCompatSupportRequirements } from "@fluid-internal/client-utils";
|
|
6
|
+
import { type ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
|
|
6
7
|
/**
|
|
7
8
|
* The core compatibility details of the DataStore layer that is the same across all layer boundaries.
|
|
8
9
|
* @internal
|
|
@@ -31,5 +32,5 @@ export declare const runtimeSupportRequirementsForDataStore: ILayerCompatSupport
|
|
|
31
32
|
* Validates that the Runtime layer is compatible with this DataStore.
|
|
32
33
|
* @internal
|
|
33
34
|
*/
|
|
34
|
-
export declare function validateRuntimeCompatibility(maybeRuntimeCompatDetails: ILayerCompatDetails | undefined, disposeFn: () => void): void;
|
|
35
|
+
export declare function validateRuntimeCompatibility(maybeRuntimeCompatDetails: ILayerCompatDetails | undefined, disposeFn: () => void, logger: ITelemetryLoggerExt): void;
|
|
35
36
|
//# sourceMappingURL=dataStoreLayerCompatState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataStoreLayerCompatState.d.ts","sourceRoot":"","sources":["../src/dataStoreLayerCompatState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"dataStoreLayerCompatState.d.ts","sourceRoot":"","sources":["../src/dataStoreLayerCompatState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACX,mBAAmB,EACnB,+BAA+B,EAC/B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,KAAK,mBAAmB,EACxB,MAAM,0CAA0C,CAAC;AAIlD;;;GAGG;AACH,eAAO,MAAM,0BAA0B;IACtC;;OAEG;;IAEH;;OAEG;;CAEH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,EAAE,mBAM9C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sCAAsC,EAAE,+BAUpD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,4BAA4B,CAC3C,yBAAyB,EAAE,mBAAmB,GAAG,SAAS,EAC1D,SAAS,EAAE,MAAM,IAAI,EACrB,MAAM,EAAE,mBAAmB,GACzB,IAAI,CAUN"}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.validateRuntimeCompatibility = exports.runtimeSupportRequirementsForDataStore = exports.dataStoreCompatDetailsForRuntime = exports.dataStoreCoreCompatDetails = void 0;
|
|
8
|
-
const client_utils_1 = require("@fluid-internal/client-utils");
|
|
9
8
|
const internal_1 = require("@fluidframework/telemetry-utils/internal");
|
|
10
9
|
const packageVersion_js_1 = require("./packageVersion.js");
|
|
11
10
|
/**
|
|
@@ -52,23 +51,8 @@ exports.runtimeSupportRequirementsForDataStore = {
|
|
|
52
51
|
* Validates that the Runtime layer is compatible with this DataStore.
|
|
53
52
|
* @internal
|
|
54
53
|
*/
|
|
55
|
-
function validateRuntimeCompatibility(maybeRuntimeCompatDetails, disposeFn) {
|
|
56
|
-
|
|
57
|
-
if (!layerCheckResult.isCompatible) {
|
|
58
|
-
const error = new internal_1.UsageError("DataStore is not compatible with Runtime", {
|
|
59
|
-
errorDetails: JSON.stringify({
|
|
60
|
-
dataStoreVersion: exports.dataStoreCoreCompatDetails.pkgVersion,
|
|
61
|
-
runtimeVersion: maybeRuntimeCompatDetails?.pkgVersion,
|
|
62
|
-
dataStoreGeneration: exports.dataStoreCoreCompatDetails.generation,
|
|
63
|
-
runtimeGeneration: maybeRuntimeCompatDetails?.generation,
|
|
64
|
-
minSupportedGeneration: exports.runtimeSupportRequirementsForDataStore.minSupportedGeneration,
|
|
65
|
-
isGenerationCompatible: layerCheckResult.isGenerationCompatible,
|
|
66
|
-
unsupportedFeatures: layerCheckResult.unsupportedFeatures,
|
|
67
|
-
}),
|
|
68
|
-
});
|
|
69
|
-
disposeFn();
|
|
70
|
-
throw error;
|
|
71
|
-
}
|
|
54
|
+
function validateRuntimeCompatibility(maybeRuntimeCompatDetails, disposeFn, logger) {
|
|
55
|
+
(0, internal_1.validateLayerCompatibility)("dataStore", "runtime", exports.dataStoreCompatDetailsForRuntime, exports.runtimeSupportRequirementsForDataStore, maybeRuntimeCompatDetails, disposeFn, logger);
|
|
72
56
|
}
|
|
73
57
|
exports.validateRuntimeCompatibility = validateRuntimeCompatibility;
|
|
74
58
|
//# sourceMappingURL=dataStoreLayerCompatState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataStoreLayerCompatState.js","sourceRoot":"","sources":["../src/dataStoreLayerCompatState.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;
|
|
1
|
+
{"version":3,"file":"dataStoreLayerCompatState.js","sourceRoot":"","sources":["../src/dataStoreLayerCompatState.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAMH,uEAGkD;AAElD,2DAAiD;AAEjD;;;GAGG;AACU,QAAA,0BAA0B,GAAG;IACzC;;OAEG;IACH,UAAU,EAAV,8BAAU;IACV;;OAEG;IACH,UAAU,EAAE,CAAC;CACb,CAAC;AAEF;;;GAGG;AACU,QAAA,gCAAgC,GAAwB;IACpE,GAAG,kCAA0B;IAC7B;;OAEG;IACH,iBAAiB,EAAE,IAAI,GAAG,EAAU;CACpC,CAAC;AAEF;;;GAGG;AACU,QAAA,sCAAsC,GAAoC;IACtF;;;OAGG;IACH,sBAAsB,EAAE,CAAC;IACzB;;OAEG;IACH,gBAAgB,EAAE,EAAE;CACpB,CAAC;AAEF;;;GAGG;AACH,SAAgB,4BAA4B,CAC3C,yBAA0D,EAC1D,SAAqB,EACrB,MAA2B;IAE3B,IAAA,qCAA0B,EACzB,WAAW,EACX,SAAS,EACT,wCAAgC,EAChC,8CAAsC,EACtC,yBAAyB,EACzB,SAAS,EACT,MAAM,CACN,CAAC;AACH,CAAC;AAdD,oEAcC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type {\n\tILayerCompatDetails,\n\tILayerCompatSupportRequirements,\n} from \"@fluid-internal/client-utils\";\nimport {\n\tvalidateLayerCompatibility,\n\ttype ITelemetryLoggerExt,\n} from \"@fluidframework/telemetry-utils/internal\";\n\nimport { pkgVersion } from \"./packageVersion.js\";\n\n/**\n * The core compatibility details of the DataStore layer that is the same across all layer boundaries.\n * @internal\n */\nexport const dataStoreCoreCompatDetails = {\n\t/**\n\t * The package version of the Runtime layer.\n\t */\n\tpkgVersion,\n\t/**\n\t * The current generation of the Runtime layer.\n\t */\n\tgeneration: 1,\n};\n\n/**\n * DataStore's compatibility details that is exposed to the Runtime layer.\n * @internal\n */\nexport const dataStoreCompatDetailsForRuntime: ILayerCompatDetails = {\n\t...dataStoreCoreCompatDetails,\n\t/**\n\t * The features supported by the DataStore layer across the DataStore / Runtime boundary.\n\t */\n\tsupportedFeatures: new Set<string>(),\n};\n\n/**\n * The requirements that the Runtime layer must meet to be compatible with this DataStore.\n * @internal\n */\nexport const runtimeSupportRequirementsForDataStore: ILayerCompatSupportRequirements = {\n\t/**\n\t * Minimum generation that Runtime must be at to be compatible with DataStore. Note that 0 is used here so\n\t * that Runtime layers before the introduction of the layer compatibility enforcement are compatible.\n\t */\n\tminSupportedGeneration: 0,\n\t/**\n\t * The features that the Runtime must support to be compatible with DataStore.\n\t */\n\trequiredFeatures: [],\n};\n\n/**\n * Validates that the Runtime layer is compatible with this DataStore.\n * @internal\n */\nexport function validateRuntimeCompatibility(\n\tmaybeRuntimeCompatDetails: ILayerCompatDetails | undefined,\n\tdisposeFn: () => void,\n\tlogger: ITelemetryLoggerExt,\n): void {\n\tvalidateLayerCompatibility(\n\t\t\"dataStore\",\n\t\t\"runtime\",\n\t\tdataStoreCompatDetailsForRuntime,\n\t\truntimeSupportRequirementsForDataStore,\n\t\tmaybeRuntimeCompatDetails,\n\t\tdisposeFn,\n\t\tlogger,\n\t);\n}\n"]}
|
|
@@ -110,11 +110,11 @@ export declare class FluidDataStoreRuntime extends TypedEventEmitter<IFluidDataS
|
|
|
110
110
|
*/
|
|
111
111
|
constructor(dataStoreContext: IFluidDataStoreContext, sharedObjectRegistry: ISharedObjectRegistry, existing: boolean, provideEntryPoint: (runtime: IFluidDataStoreRuntime) => Promise<FluidObject>, policies?: Partial<IFluidDataStorePolicies>);
|
|
112
112
|
/**
|
|
113
|
-
* Implementation of
|
|
113
|
+
* Implementation of IFluidDataStoreRuntimeAlpha.inStagingMode
|
|
114
114
|
*/
|
|
115
115
|
private get inStagingMode();
|
|
116
116
|
/**
|
|
117
|
-
* Implementation of
|
|
117
|
+
* Implementation of IFluidDataStoreRuntimeAlpha.isDirty
|
|
118
118
|
*/
|
|
119
119
|
private get isDirty();
|
|
120
120
|
get deltaManager(): IDeltaManagerErased;
|
|
@@ -246,12 +246,6 @@ export declare class FluidDataStoreRuntime extends TypedEventEmitter<IFluidDataS
|
|
|
246
246
|
* Runs the callback for each bound context to incorporate its data however the caller specifies
|
|
247
247
|
*/
|
|
248
248
|
private visitLocalBoundContextsDuringAttach;
|
|
249
|
-
/**
|
|
250
|
-
* Do not use.
|
|
251
|
-
* @deprecated Use `IFluidDataStoreContext.submitMessage` instead.
|
|
252
|
-
* @see https://github.com/microsoft/FluidFramework/issues/24406
|
|
253
|
-
*/
|
|
254
|
-
submitMessage(type: DataStoreMessageType, content: any, localOpMetadata: unknown): void;
|
|
255
249
|
/**
|
|
256
250
|
* Submits the signal to be sent to other clients.
|
|
257
251
|
* @param type - Type of the signal.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataStoreRuntime.d.ts","sourceRoot":"","sources":["../src/dataStoreRuntime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAA4B,MAAM,8BAA8B,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,KAAK,EACX,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EACX,mBAAmB,EACnB,oBAAoB,EACpB,MAAM,0CAA0C,CAAC;AAQlD,OAAO,KA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IA4C3D;;;;;;OAMG;IACH,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,cAAc;IAkBtB,OAAO,CAAC,eAAe;IAMvB;;;;OAIG;IACH,OAAO,CAAC,+BAA+B;IAyBhC,cAAc,CAAC,WAAW,EAAE,WAAW,CAAC,SAAS,GAAG,WAAW,CAAC,QAAQ,GAAG,IAAI;CA+CtF;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,mBACf,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,qBAAqB,KAAK,QAAQ,SAAS,CAAC,SACnF,4BAA4B,KAChC,4BAS+B,CAAC;AAEnC;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,YACtB,CACR,OAAO,EAAE,qBAAqB,KAC1B,QAAQ;IAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,SACvD,4BAA4B,KAChC,4BAyC+B,CAAC"}
|
package/dist/dataStoreRuntime.js
CHANGED
|
@@ -142,10 +142,17 @@ class FluidDataStoreRuntime extends client_utils_1.TypedEventEmitter {
|
|
|
142
142
|
*/
|
|
143
143
|
this.pendingOpCount = initializePendingOpCount();
|
|
144
144
|
(0, internal_1.assert)(!dataStoreContext.id.includes("/"), 0x30e /* Id cannot contain slashes. DataStoreContext should have validated this. */);
|
|
145
|
-
this.
|
|
145
|
+
this.mc = (0, internal_5.createChildMonitoringContext)({
|
|
146
|
+
logger: dataStoreContext.baseLogger,
|
|
147
|
+
namespace: "FluidDataStoreRuntime",
|
|
148
|
+
properties: {
|
|
149
|
+
all: { dataStoreId: (0, uuid_1.v4)(), dataStoreVersion: packageVersion_js_1.pkgVersion },
|
|
150
|
+
error: { inStagingMode: () => this.inStagingMode, isDirty: () => this.isDirty },
|
|
151
|
+
},
|
|
152
|
+
});
|
|
146
153
|
// Validate that the Runtime is compatible with this DataStore.
|
|
147
154
|
const { ILayerCompatDetails: runtimeCompatDetails } = dataStoreContext;
|
|
148
|
-
(0, dataStoreLayerCompatState_js_1.validateRuntimeCompatibility)(runtimeCompatDetails, this.dispose.bind(this));
|
|
155
|
+
(0, dataStoreLayerCompatState_js_1.validateRuntimeCompatibility)(runtimeCompatDetails, this.dispose.bind(this), this.mc.logger);
|
|
149
156
|
if (contextSupportsFeature(dataStoreContext, internal_3.notifiesReadOnlyState)) {
|
|
150
157
|
this._readonly = dataStoreContext.isReadOnly();
|
|
151
158
|
}
|
|
@@ -153,16 +160,10 @@ class FluidDataStoreRuntime extends client_utils_1.TypedEventEmitter {
|
|
|
153
160
|
this._readonly = this.dataStoreContext.deltaManager.readOnlyInfo.readonly === true;
|
|
154
161
|
this.dataStoreContext.deltaManager.on("readonly", (readonly) => this.notifyReadOnlyState(readonly));
|
|
155
162
|
}
|
|
163
|
+
this.policies = { ...defaultPolicies, ...policies };
|
|
156
164
|
this.submitMessagesWithoutEncodingHandles = contextSupportsFeature(dataStoreContext, internal_3.encodeHandlesInContainerRuntime);
|
|
157
165
|
// We read this property here to avoid a compiler error (unused private member)
|
|
158
166
|
(0, internal_1.debugAssert)(() => this.submitMessagesWithoutEncodingHandles !== undefined);
|
|
159
|
-
this.mc = (0, internal_5.createChildMonitoringContext)({
|
|
160
|
-
logger: dataStoreContext.baseLogger,
|
|
161
|
-
namespace: "FluidDataStoreRuntime",
|
|
162
|
-
properties: {
|
|
163
|
-
all: { dataStoreId: (0, uuid_1.v4)(), dataStoreVersion: packageVersion_js_1.pkgVersion },
|
|
164
|
-
},
|
|
165
|
-
});
|
|
166
167
|
this.id = dataStoreContext.id;
|
|
167
168
|
this.options = dataStoreContext.options;
|
|
168
169
|
this.deltaManagerInternal = dataStoreContext.deltaManager;
|
|
@@ -230,26 +231,17 @@ class FluidDataStoreRuntime extends client_utils_1.TypedEventEmitter {
|
|
|
230
231
|
// By default, a data store can log maximum 10 local changes telemetry in summarizer.
|
|
231
232
|
this.localChangesTelemetryCount =
|
|
232
233
|
this.mc.config.getNumber("Fluid.Telemetry.LocalChangesTelemetryCount") ?? 10;
|
|
233
|
-
// Reference these properties to avoid unused private member errors.
|
|
234
|
-
// They're accessed via IFluidDataStoreRuntimeExperimental interface.
|
|
235
|
-
// eslint-disable-next-line no-void
|
|
236
|
-
void [this.inStagingMode, this.isDirty];
|
|
237
234
|
this.minVersionForCollab = this.dataStoreContext.minVersionForCollab;
|
|
238
235
|
}
|
|
239
236
|
/**
|
|
240
|
-
* Implementation of
|
|
237
|
+
* Implementation of IFluidDataStoreRuntimeAlpha.inStagingMode
|
|
241
238
|
*/
|
|
242
|
-
// eslint-disable-next-line import/no-deprecated
|
|
243
239
|
get inStagingMode() {
|
|
244
|
-
return (
|
|
245
|
-
// eslint-disable-next-line import/no-deprecated
|
|
246
|
-
this.dataStoreContext.containerRuntime
|
|
247
|
-
?.inStagingMode);
|
|
240
|
+
return (0, internal_3.asLegacyAlpha)(this.dataStoreContext.containerRuntime)?.inStagingMode;
|
|
248
241
|
}
|
|
249
242
|
/**
|
|
250
|
-
* Implementation of
|
|
243
|
+
* Implementation of IFluidDataStoreRuntimeAlpha.isDirty
|
|
251
244
|
*/
|
|
252
|
-
// eslint-disable-next-line import/no-deprecated
|
|
253
245
|
get isDirty() {
|
|
254
246
|
return this.pendingOpCount.value > 0;
|
|
255
247
|
}
|
|
@@ -777,17 +769,6 @@ class FluidDataStoreRuntime extends client_utils_1.TypedEventEmitter {
|
|
|
777
769
|
}
|
|
778
770
|
}
|
|
779
771
|
}
|
|
780
|
-
/**
|
|
781
|
-
* Do not use.
|
|
782
|
-
* @deprecated Use `IFluidDataStoreContext.submitMessage` instead.
|
|
783
|
-
* @see https://github.com/microsoft/FluidFramework/issues/24406
|
|
784
|
-
*/
|
|
785
|
-
submitMessage(type,
|
|
786
|
-
// TODO: use something other than `any` here (breaking change)
|
|
787
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
|
788
|
-
content, localOpMetadata) {
|
|
789
|
-
this.submit(type, content, localOpMetadata);
|
|
790
|
-
}
|
|
791
772
|
/**
|
|
792
773
|
* Submits the signal to be sent to other clients.
|
|
793
774
|
* @param type - Type of the signal.
|