@m4l/realtime-runtime 1.1.0 → 1.2.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.
Files changed (39) hide show
  1. package/contracts/index.d.ts +1 -1
  2. package/contracts/index.d.ts.map +1 -1
  3. package/contracts/types.d.ts +88 -4
  4. package/contracts/types.d.ts.map +1 -1
  5. package/engine/runtimeCore.d.ts +3 -1
  6. package/engine/runtimeCore.d.ts.map +1 -1
  7. package/engine/runtimeCore.js +9 -7
  8. package/index.d.ts +2 -1
  9. package/index.d.ts.map +1 -1
  10. package/index.js +7 -6
  11. package/package.json +1 -1
  12. package/transport/atmosphere/SourceDataAtmosphere.d.ts +41 -9
  13. package/transport/atmosphere/SourceDataAtmosphere.d.ts.map +1 -1
  14. package/transport/atmosphere/SourceDataAtmosphere.js +240 -96
  15. package/transport/atmosphere/createAtmosphereSourceData.d.ts +7 -3
  16. package/transport/atmosphere/createAtmosphereSourceData.d.ts.map +1 -1
  17. package/transport/atmosphere/createAtmosphereSourceData.js +33 -4
  18. package/transport/atmosphere/index.d.ts +1 -1
  19. package/transport/atmosphere/index.d.ts.map +1 -1
  20. package/transport/atmosphere/types.d.ts +24 -3
  21. package/transport/atmosphere/types.d.ts.map +1 -1
  22. package/transport/index.d.ts +1 -1
  23. package/transport/index.d.ts.map +1 -1
  24. package/web/index.d.ts +1 -1
  25. package/web/index.d.ts.map +1 -1
  26. package/web/runtime.d.ts.map +1 -1
  27. package/web/runtime.js +55 -53
  28. package/web/store.d.ts +2 -2
  29. package/web/store.d.ts.map +1 -1
  30. package/web/store.helpers.d.ts +24 -4
  31. package/web/store.helpers.d.ts.map +1 -1
  32. package/web/store.helpers.js +126 -23
  33. package/web/store.js +261 -80
  34. package/web/tools.d.ts.map +1 -1
  35. package/web/tools.js +15 -4
  36. package/web/types.d.ts +32 -3
  37. package/web/types.d.ts.map +1 -1
  38. package/web.d.ts +1 -1
  39. package/web.d.ts.map +1 -1
@@ -1,2 +1,2 @@
1
- export type { OnMessagesStoreCallback, OnRealTimeProducerMetricCallback, OnRealTimeConsumerMessageCallback, OnRealtimeConsumerSubscribeCallback, RealTimeMessage, RealTimeMessagePayload, RealTimeProducerTools, RealTimeProducerMetricName, RealTimeResourceHash, RealTimeResourceRuntimeMeta, RealTimeResourceSerialId, RealTimeResourceSourceMechanismConfig, RealTimeResourceSourceMechanismConfigAtmosphere, RealTimeResourceSourceMechanismConfigBase, RealTimeResourceType, RealTimeResourceTypeId, RealTimeStatus, ResourceTypeSourceDataMechanism, SubscribeOptions, Subscriber, } from './types';
1
+ export type { OnMessagesStoreCallback, OnRealTimeProducerMetricCallback, OnRealTimeConsumerMessageCallback, OnRealtimeConsumerSubscribeCallback, RealTimeMessage, RealTimeMessageIngressReason, RealTimeResourceMessageNormalizeContext, RealTimeResourceMessageNormalizeStrategy, RealTimeMessagePayload, RealTimeProducerTools, RealTimeProducerMetricName, RealTimeReadonlyResourceHash, RealTimeResourceMergeContext, RealTimeResourceHash, RealTimeResourcePayloadMergeStrategy, RealTimeResourceRuntimeMeta, RealTimeResourceSerialId, RealTimeResourceSourceMechanismConfig, RealTimeResourceSourceMechanismConfigAtmosphere, RealTimeResourceSourceMechanismConfigBase, RealTimeResourceType, RealTimeResourceTypeId, RealTimeStatus, ResourceTypeSourceDataMechanism, SubscribeOptions, SubscribeResourceTypeOptions, Subscriber, } from './types';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/realtime-runtime/src/contracts/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,mCAAmC,EACnC,eAAe,EACf,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACpB,2BAA2B,EAC3B,wBAAwB,EACxB,qCAAqC,EACrC,+CAA+C,EAC/C,yCAAyC,EACzC,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,+BAA+B,EAC/B,gBAAgB,EAChB,UAAU,GACX,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/realtime-runtime/src/contracts/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,mCAAmC,EACnC,eAAe,EACf,4BAA4B,EAC5B,uCAAuC,EACvC,wCAAwC,EACxC,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAC5B,4BAA4B,EAC5B,oBAAoB,EACpB,oCAAoC,EACpC,2BAA2B,EAC3B,wBAAwB,EACxB,qCAAqC,EACrC,+CAA+C,EAC/C,yCAAyC,EACzC,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,+BAA+B,EAC/B,gBAAgB,EAChB,4BAA4B,EAC5B,UAAU,GACX,MAAM,SAAS,CAAC"}
@@ -10,19 +10,69 @@ export type ResourceTypeSourceDataMechanism = string;
10
10
  /**
11
11
  * Realtime resource identifier.
12
12
  */
13
- export type RealTimeResourceSerialId = number | string;
13
+ export type RealTimeResourceSerialId = string;
14
14
  /**
15
15
  * Realtime message payload.
16
16
  */
17
17
  export type RealTimeMessagePayload = Record<string | number, unknown>;
18
+ /**
19
+ * Producer ingress source used when one realtime payload reaches the shared resource pipeline.
20
+ */
21
+ export type RealTimeMessageIngressReason = 'transport' | 'bootstrap' | 'publish' | 'cleanup';
22
+ /**
23
+ * Context shared with optional resource-specific payload merge strategies.
24
+ */
25
+ export interface RealTimeResourceMergeContext {
26
+ /**
27
+ * Why the current payload entered the producer pipeline.
28
+ */
29
+ reason: RealTimeMessageIngressReason;
30
+ /**
31
+ * Resource type currently receiving the payload.
32
+ */
33
+ resourceTypeId: RealTimeResourceTypeId;
34
+ /**
35
+ * Resource instance currently receiving the payload.
36
+ */
37
+ resourceSerialId: RealTimeResourceSerialId;
38
+ }
39
+ /**
40
+ * Context shared with optional resource-specific message normalization strategies.
41
+ */
42
+ export interface RealTimeResourceMessageNormalizeContext {
43
+ /**
44
+ * Why the current message entered the producer pipeline.
45
+ */
46
+ reason: RealTimeMessageIngressReason;
47
+ /**
48
+ * Resource type currently receiving the message.
49
+ */
50
+ resourceTypeId: RealTimeResourceTypeId;
51
+ }
52
+ /**
53
+ * Optional merge strategy that can sanitize one incoming payload against the current resource snapshot.
54
+ *
55
+ * Treat both input payloads as read-only and return a sanitized incoming patch,
56
+ * not a full resource snapshot.
57
+ */
58
+ export type RealTimeResourcePayloadMergeStrategy = (currentResource: RealTimeMessagePayload | undefined, incomingPayload: RealTimeMessagePayload, context: RealTimeResourceMergeContext) => RealTimeMessagePayload;
59
+ /**
60
+ * Optional strategy that can normalize one incoming realtime message before it reaches the producer hash.
61
+ */
62
+ export type RealTimeResourceMessageNormalizeStrategy = (message: RealTimeMessage, context: RealTimeResourceMessageNormalizeContext) => RealTimeMessage | null;
18
63
  /**
19
64
  * Producer-side resource snapshot shared across neutral runtime APIs.
20
65
  */
21
66
  export type RealTimeResourceHash = Record<RealTimeResourceSerialId, RealTimeMessagePayload>;
67
+ /**
68
+ * Read-only producer-side resource snapshot for hot paths that must avoid deep cloning.
69
+ */
70
+ export type RealTimeReadonlyResourceHash = Readonly<Record<RealTimeResourceSerialId, Readonly<RealTimeMessagePayload>>>;
22
71
  /**
23
72
  * Realtime message.
24
73
  */
25
74
  export interface RealTimeMessage {
75
+ resourceTypeId: RealTimeResourceTypeId;
26
76
  type: 'new' | 'update' | 'delete';
27
77
  resourceSerialId: RealTimeResourceSerialId;
28
78
  readonly payload: RealTimeMessagePayload;
@@ -42,6 +92,10 @@ export interface SubscribeOptions extends Pick<Subscriber, 'clientId' | 'onMessa
42
92
  */
43
93
  onSubscribeCallbacks: OnRealtimeConsumerSubscribeCallback[];
44
94
  }
95
+ /**
96
+ * Fast-path resource-type subscription options that return a read-only snapshot instead of cloning it.
97
+ */
98
+ export type SubscribeResourceTypeOptions = Pick<Subscriber, 'clientId' | 'onMessageCallbacks'>;
45
99
  /**
46
100
  * Minimal runtime metadata exposed for one resource type.
47
101
  */
@@ -59,10 +113,24 @@ export interface RealTimeResourceRuntimeMeta {
59
113
  * Host-owned producer actions that consumers can use without depending on one React provider.
60
114
  */
61
115
  export interface RealTimeProducerTools {
116
+ /**
117
+ * Read the current producer-side resource hash without cloning it.
118
+ *
119
+ * Treat the returned value as read-only. Use `getSnapshot` or legacy `subscribe`
120
+ * when a mutable copy is required.
121
+ */
122
+ getResourceTypeSnapshot: (resourceTypeId: RealTimeResourceTypeId) => RealTimeReadonlyResourceHash;
62
123
  /**
63
124
  * Subscribe one consumer client to a realtime resource type.
64
125
  */
65
126
  subscribe: (resourceTypeId: RealTimeResourceTypeId, options: SubscribeOptions) => void;
127
+ /**
128
+ * Subscribe one consumer client to a resource type and return the current hash without cloning it.
129
+ *
130
+ * Treat the returned value as read-only. This is the preferred hot path for
131
+ * consumers that immediately copy or project the snapshot into their own store.
132
+ */
133
+ subscribeResourceType: (resourceTypeId: RealTimeResourceTypeId, options: SubscribeResourceTypeOptions) => RealTimeReadonlyResourceHash;
66
134
  /**
67
135
  * Unsubscribe one consumer client from a realtime resource type.
68
136
  */
@@ -70,7 +138,7 @@ export interface RealTimeProducerTools {
70
138
  /**
71
139
  * Publish one synthetic realtime batch through the shared producer pipeline.
72
140
  */
73
- publishMessages: (resourceTypeId: RealTimeResourceTypeId, messages: RealTimeMessage[]) => void;
141
+ publishMessages: (resourceTypeId: RealTimeResourceTypeId, messages: RealTimeMessage[], reason?: Extract<RealTimeMessageIngressReason, 'bootstrap' | 'publish'>) => void;
74
142
  /**
75
143
  * Read the current runtime metadata for one resource type.
76
144
  */
@@ -107,6 +175,14 @@ export interface RealTimeResourceSourceMechanismConfigBase {
107
175
  * Interval used to scan for stale resources when TTL cleanup is enabled.
108
176
  */
109
177
  staleResourceCleanupIntervalMs?: number;
178
+ /**
179
+ * Optional resource-specific merge policy invoked only for this resource type before the default producer merge behavior.
180
+ */
181
+ mergePayloadStrategy?: RealTimeResourcePayloadMergeStrategy;
182
+ /**
183
+ * Optional resource-specific message normalization applied before queueing and hash-key resolution.
184
+ */
185
+ normalizeMessageStrategy?: RealTimeResourceMessageNormalizeStrategy;
110
186
  [key: string]: unknown;
111
187
  }
112
188
  /**
@@ -156,10 +232,18 @@ export interface RealTimeResourceSourceMechanismConfigAtmosphere extends RealTim
156
232
  * Batch throttling value consumed by the realtime backend.
157
233
  */
158
234
  rateLimit?: number;
235
+ /**
236
+ * Publish parameters requested from the realtime backend for this resource type entry.
237
+ */
238
+ publishParams?: Record<string, unknown>;
159
239
  /**
160
240
  * Resource filter list requested from the realtime backend.
161
241
  */
162
242
  resourcesId?: Array<RealTimeResourceSerialId | 'all'>;
243
+ /**
244
+ * Backend size limit requested for one Atmosphere resource type entry.
245
+ */
246
+ sizeLimit?: number;
163
247
  /**
164
248
  * Projection list requested from the realtime backend.
165
249
  */
@@ -167,7 +251,7 @@ export interface RealTimeResourceSourceMechanismConfigAtmosphere extends RealTim
167
251
  /**
168
252
  * Subscription contract version sent to the realtime backend.
169
253
  */
170
- version?: string;
254
+ version?: string | number;
171
255
  }
172
256
  /**
173
257
  * Generic realtime resource configuration accepted by the runtime engine.
@@ -205,7 +289,7 @@ export type OnMessagesStoreCallback = (resourceTypeId: RealTimeResourceTypeId, m
205
289
  /**
206
290
  * Producer-runtime metric names emitted by the generic engine.
207
291
  */
208
- export type RealTimeProducerMetricName = 'producerIncomingBatch' | 'producerDrainSet';
292
+ export type RealTimeProducerMetricName = 'producerIncomingBatch' | 'producerDrainSet' | 'producerQueueLength' | 'producerResourceCount' | 'producerSubscriberCount' | 'producerRepeatedResourceCount' | 'producerSanitizeDurationMs' | 'producerApplyDurationMs' | 'producerNotifyDurationMs' | 'producerProcessDurationMs' | 'producerTransportParseDurationMs' | 'producerTransportNormalizeDurationMs' | 'producerTransportEmitDurationMs' | 'producerTransportMessageDurationMs';
209
293
  /**
210
294
  * Optional reporter used by platform or domain adapters to observe engine metrics.
211
295
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/realtime-runtime/src/contracts/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CACvC,wBAAwB,EACxB,sBAAsB,CACvB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAClC,gBAAgB,EAAE,wBAAwB,CAAC;IAC3C,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAC;CAC1C;AAED,MAAM,MAAM,iCAAiC,GAAG,CAC9C,cAAc,EAAE,sBAAsB,EACtC,QAAQ,EAAE,eAAe,EAAE,KACxB,IAAI,CAAC;AAEV,MAAM,MAAM,mCAAmC,GAAG,CAChD,cAAc,EAAE,sBAAsB,EACtC,oBAAoB,EAAE,oBAAoB,KACvC,IAAI,CAAC;AAEV,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,kBAAkB,EAAE,iCAAiC,EAAE,CAAC;CACzD,CAAC;AAEF,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,oBAAoB,CAAC;IAC3D;;OAEG;IACH,oBAAoB,EAAE,mCAAmC,EAAE,CAAC;CAC7D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,CAAC;IACb;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC;IACjD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,wBAAwB,GAAG,KAAK,CAAC,CAAC;IACtD;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAC/C,yCAAyC,CAAC;AAE5C;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,EAAE,qCAAqC,CAAC;IAC9C;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB;;OAEG;IACH,eAAe,EAAE,cAAc,CAAC;IAChC;;OAEG;IACH,YAAY,EAAE,oBAAoB,CAAC;IACnC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,CACpC,cAAc,EAAE,sBAAsB,EACtC,OAAO,EAAE,eAAe,EAAE,KACvB,IAAI,CAAC;AAEV;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAClC,uBAAuB,GACvB,kBAAkB,CAAC;AAEvB;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,CAC7C,UAAU,EAAE,0BAA0B,EACtC,KAAK,CAAC,EAAE,MAAM,KACX,IAAI,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/realtime-runtime/src/contracts/types.ts"],"names":[],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2BAA2B,GAC3B,kCAAkC,GAClC,sCAAsC,GACtC,iCAAiC,GACjC,oCAAoC,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,CAC7C,UAAU,EAAE,0BAA0B,EACtC,KAAK,CAAC,EAAE,MAAM,KACX,IAAI,CAAC"}
@@ -1,12 +1,14 @@
1
- import { RealTimeResourceHash, RealTimeResourceTypeId, RealTimeStatus, SubscribeOptions } from '../contracts';
1
+ import { RealTimeReadonlyResourceHash, RealTimeResourceHash, RealTimeResourceTypeId, RealTimeStatus, SubscribeOptions, SubscribeResourceTypeOptions } from '../contracts';
2
2
  /**
3
3
  * Neutral runtime API that should remain usable beyond one specific UI store adapter.
4
4
  */
5
5
  export interface RealtimeRuntime {
6
6
  dispose: () => void;
7
+ getResourceTypeSnapshot: (resourceTypeId: RealTimeResourceTypeId) => RealTimeReadonlyResourceHash;
7
8
  getSnapshot: (resourceTypeId: RealTimeResourceTypeId) => RealTimeResourceHash;
8
9
  getStatus: (resourceTypeId: RealTimeResourceTypeId) => RealTimeStatus | undefined;
9
10
  subscribe: (resourceTypeId: RealTimeResourceTypeId, options: SubscribeOptions) => void;
11
+ subscribeResourceType: (resourceTypeId: RealTimeResourceTypeId, options: SubscribeResourceTypeOptions) => RealTimeReadonlyResourceHash;
10
12
  unsubscribe: (resourceTypeId: RealTimeResourceTypeId, clientId: string) => void;
11
13
  }
12
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeCore.d.ts","sourceRoot":"","sources":["../../../../../packages/realtime-runtime/src/engine/runtimeCore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,EAAE,CAAC,cAAc,EAAE,sBAAsB,KAAK,oBAAoB,CAAC;IAC9E,SAAS,EAAE,CAAC,cAAc,EAAE,sBAAsB,KAAK,cAAc,GAAG,SAAS,CAAC;IAClF,SAAS,EAAE,CAAC,cAAc,EAAE,sBAAsB,EAAE,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACvF,WAAW,EAAE,CAAC,cAAc,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACjF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,eAAe,GACvB,eAAe,CAQjB"}
1
+ {"version":3,"file":"runtimeCore.d.ts","sourceRoot":"","sources":["../../../../../packages/realtime-runtime/src/engine/runtimeCore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,gBAAgB,EAChB,4BAA4B,EAC7B,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,uBAAuB,EAAE,CAAC,cAAc,EAAE,sBAAsB,KAAK,4BAA4B,CAAC;IAClG,WAAW,EAAE,CAAC,cAAc,EAAE,sBAAsB,KAAK,oBAAoB,CAAC;IAC9E,SAAS,EAAE,CAAC,cAAc,EAAE,sBAAsB,KAAK,cAAc,GAAG,SAAS,CAAC;IAClF,SAAS,EAAE,CAAC,cAAc,EAAE,sBAAsB,EAAE,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACvF,qBAAqB,EAAE,CACrB,cAAc,EAAE,sBAAsB,EACtC,OAAO,EAAE,4BAA4B,KAClC,4BAA4B,CAAC;IAClC,WAAW,EAAE,CAAC,cAAc,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACjF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,eAAe,GACvB,eAAe,CAUjB"}
@@ -1,12 +1,14 @@
1
- function e(s) {
1
+ function s(e) {
2
2
  return {
3
- dispose: s.dispose,
4
- getSnapshot: s.getSnapshot,
5
- getStatus: s.getStatus,
6
- subscribe: s.subscribe,
7
- unsubscribe: s.unsubscribe
3
+ dispose: e.dispose,
4
+ getResourceTypeSnapshot: e.getResourceTypeSnapshot,
5
+ getSnapshot: e.getSnapshot,
6
+ getStatus: e.getStatus,
7
+ subscribe: e.subscribe,
8
+ subscribeResourceType: e.subscribeResourceType,
9
+ unsubscribe: e.unsubscribe
8
10
  };
9
11
  }
10
12
  export {
11
- e as createRealtimeRuntimeApi
13
+ s as createRealtimeRuntimeApi
12
14
  };
package/index.d.ts CHANGED
@@ -3,7 +3,8 @@ export type { RealtimeRuntime } from './engine';
3
3
  export { createGetOrCreateRuntime, disposeRealtimeRuntime, } from './engine';
4
4
  export { SourceDataBase } from './transport';
5
5
  export { createAtmosphereSourceData } from './transport';
6
+ export { createAtmosphereSourceDataFactory } from './transport';
6
7
  export { SourceDataAtmosphere } from './transport';
7
8
  export type { AtmosphereMessage } from './transport';
8
- export type { OnMessagesStoreCallback, OnRealTimeProducerMetricCallback, OnRealTimeConsumerMessageCallback, OnRealtimeConsumerSubscribeCallback, RealTimeMessage, RealTimeMessagePayload, RealTimeProducerTools, RealTimeProducerMetricName, RealTimeResourceHash, RealTimeResourceRuntimeMeta, RealTimeResourceSerialId, RealTimeResourceSourceMechanismConfig, RealTimeResourceSourceMechanismConfigAtmosphere, RealTimeResourceSourceMechanismConfigBase, RealTimeResourceType, RealTimeResourceTypeId, RealTimeStatus, ResourceTypeSourceDataMechanism, SubscribeOptions, Subscriber, } from './contracts';
9
+ export type { OnMessagesStoreCallback, OnRealTimeProducerMetricCallback, OnRealTimeConsumerMessageCallback, OnRealtimeConsumerSubscribeCallback, RealTimeMessage, RealTimeMessageIngressReason, RealTimeResourceMessageNormalizeContext, RealTimeResourceMessageNormalizeStrategy, RealTimeMessagePayload, RealTimeProducerTools, RealTimeProducerMetricName, RealTimeReadonlyResourceHash, RealTimeResourceMergeContext, RealTimeResourceHash, RealTimeResourcePayloadMergeStrategy, RealTimeResourceRuntimeMeta, RealTimeResourceSerialId, RealTimeResourceSourceMechanismConfig, RealTimeResourceSourceMechanismConfigAtmosphere, RealTimeResourceSourceMechanismConfigBase, RealTimeResourceType, RealTimeResourceTypeId, RealTimeStatus, ResourceTypeSourceDataMechanism, SubscribeOptions, SubscribeResourceTypeOptions, Subscriber, } from './contracts';
9
10
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/realtime-runtime/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EACL,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,YAAY,EACV,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,mCAAmC,EACnC,eAAe,EACf,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACpB,2BAA2B,EAC3B,wBAAwB,EACxB,qCAAqC,EACrC,+CAA+C,EAC/C,yCAAyC,EACzC,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,+BAA+B,EAC/B,gBAAgB,EAChB,UAAU,GACX,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/realtime-runtime/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EACL,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,YAAY,EACV,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,mCAAmC,EACnC,eAAe,EACf,4BAA4B,EAC5B,uCAAuC,EACvC,wCAAwC,EACxC,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAC5B,4BAA4B,EAC5B,oBAAoB,EACpB,oCAAoC,EACpC,2BAA2B,EAC3B,wBAAwB,EACxB,qCAAqC,EACrC,+CAA+C,EAC/C,yCAAyC,EACzC,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,+BAA+B,EAC/B,gBAAgB,EAChB,4BAA4B,EAC5B,UAAU,GACX,MAAM,aAAa,CAAC"}
package/index.js CHANGED
@@ -1,13 +1,14 @@
1
1
  import { ObjectQueue as t } from "./engine/ObjectQueue.js";
2
2
  import { createGetOrCreateRuntime as a, disposeRealtimeRuntime as m } from "./engine/runtimeRegistry.js";
3
- import { SourceDataBase as u } from "./transport/SourceDataBase.js";
4
- import { createAtmosphereSourceData as f } from "./transport/atmosphere/createAtmosphereSourceData.js";
5
- import { SourceDataAtmosphere as x } from "./transport/atmosphere/SourceDataAtmosphere.js";
3
+ import { SourceDataBase as p } from "./transport/SourceDataBase.js";
4
+ import { createAtmosphereSourceData as s, createAtmosphereSourceDataFactory as f } from "./transport/atmosphere/createAtmosphereSourceData.js";
5
+ import { SourceDataAtmosphere as i } from "./transport/atmosphere/SourceDataAtmosphere.js";
6
6
  export {
7
7
  t as ObjectQueue,
8
- x as SourceDataAtmosphere,
9
- u as SourceDataBase,
10
- f as createAtmosphereSourceData,
8
+ i as SourceDataAtmosphere,
9
+ p as SourceDataBase,
10
+ s as createAtmosphereSourceData,
11
+ f as createAtmosphereSourceDataFactory,
11
12
  a as createGetOrCreateRuntime,
12
13
  m as disposeRealtimeRuntime
13
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/realtime-runtime",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,20 +1,24 @@
1
- import { RealTimeResourceSourceMechanismConfigAtmosphere } from '../../contracts';
1
+ import { OnRealTimeProducerMetricCallback, OnMessagesStoreCallback, RealTimeResourceSourceMechanismConfigAtmosphere, RealTimeResourceTypeId } from '../../contracts';
2
2
  import { SourceDataBase } from '../SourceDataBase';
3
3
  /**
4
4
  * Normalize the Atmosphere request base URL so websocket upgrades and HTTP fallback transports share one safe origin.
5
5
  */
6
6
  declare function resolveAtmosphereRequestUrl(config: RealTimeResourceSourceMechanismConfigAtmosphere): string;
7
7
  /**
8
- * Atmosphere-backed realtime source implementation used by the generic engine.
8
+ * Shared controller that owns one Atmosphere socket for all compatible resource types in one runtime.
9
9
  */
10
- export declare class SourceDataAtmosphere extends SourceDataBase {
10
+ export declare class SharedAtmosphereTransport {
11
+ private readonly onMessages;
12
+ private readonly onPerformanceMetric?;
11
13
  private subSocket;
12
- private stopped;
13
14
  private reconnectTimeout;
14
15
  private transportOpenTimeout;
15
16
  private transportAttempt;
16
17
  private browserRecoveryListenersBound;
18
+ private isTransportOpen;
17
19
  private lastMessageTime;
20
+ private connectionSignature;
21
+ private readonly activeConfigs;
18
22
  /**
19
23
  * Recheck the current transport when the browser regains focus.
20
24
  */
@@ -27,14 +31,27 @@ export declare class SourceDataAtmosphere extends SourceDataBase {
27
31
  * Recheck the current transport when the tab becomes visible again.
28
32
  */
29
33
  private readonly handleBrowserVisibilityChange;
34
+ constructor(onMessages: OnMessagesStoreCallback, onPerformanceMetric?: OnRealTimeProducerMetricCallback | undefined);
30
35
  /**
31
- * Start the realtime transport connection.
36
+ * Register one resource type in the active shared transport group.
32
37
  */
33
- start(): void;
38
+ start(config: RealTimeResourceSourceMechanismConfigAtmosphere): void;
39
+ /**
40
+ * Remove one resource type from the shared transport group and stop the socket when the last one leaves.
41
+ */
42
+ stop(resourceTypeId: RealTimeResourceTypeId): void;
34
43
  /**
35
- * Send the subscribe payload expected by the Atmosphere backend.
44
+ * Keep one shared transport restricted to a single Atmosphere connection contract per runtime.
45
+ */
46
+ private assertCompatibleConfig;
47
+ /**
48
+ * Send the grouped subscribe payload expected by the Atmosphere backend.
36
49
  */
37
50
  private sendSubscribe;
51
+ /**
52
+ * Return the current compatibility config that defines the shared connection details.
53
+ */
54
+ private getRepresentativeConfig;
38
55
  /**
39
56
  * Return whether one callback still belongs to the latest transport attempt.
40
57
  */
@@ -76,13 +93,28 @@ export declare class SourceDataAtmosphere extends SourceDataBase {
76
93
  */
77
94
  private recoverTransportFromBrowserEvent;
78
95
  /**
79
- * Connect to the realtime backend transport.
96
+ * Connect to the shared realtime backend transport.
80
97
  */
81
98
  private connect;
82
99
  /**
83
- * Schedule the next reconnect attempt unless the source has already stopped.
100
+ * Schedule the next reconnect attempt unless the shared source group is already empty.
84
101
  */
85
102
  private tryReconnect;
103
+ /**
104
+ * Stop the shared transport and cancel any pending reconnect attempt.
105
+ */
106
+ private shutdownTransport;
107
+ }
108
+ /**
109
+ * Atmosphere-backed realtime source implementation used by the generic engine.
110
+ */
111
+ export declare class SourceDataAtmosphere extends SourceDataBase {
112
+ private readonly sharedTransport;
113
+ constructor(config: RealTimeResourceSourceMechanismConfigAtmosphere, onMessages: OnMessagesStoreCallback, sharedTransport?: SharedAtmosphereTransport, onPerformanceMetric?: OnRealTimeProducerMetricCallback);
114
+ /**
115
+ * Start the realtime transport connection.
116
+ */
117
+ start(): void;
86
118
  /**
87
119
  * Stop the transport and cancel any pending reconnect attempt.
88
120
  */
@@ -1 +1 @@
1
- {"version":3,"file":"SourceDataAtmosphere.d.ts","sourceRoot":"","sources":["../../../../../../packages/realtime-runtime/src/transport/atmosphere/SourceDataAtmosphere.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+CAA+C,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAUnD;;GAEG;AACH,iBAAS,2BAA2B,CAClC,MAAM,EAAE,+CAA+C,UA0BxD;AAED;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,cAAc;IAEtD,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,gBAAgB,CAAyD;IACjF,OAAO,CAAC,oBAAoB,CAAyD;IACrF,OAAO,CAAC,gBAAgB,CAAK;IAC7B,OAAO,CAAC,6BAA6B,CAAS;IAE9C,OAAO,CAAC,eAAe,CAAqB;IAE5C;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAEjC;IAEF;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAElC;IAEF;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,6BAA6B,CAI5C;IAGF;;OAEG;IACH,KAAK,IAAI,IAAI;IAMb;;OAEG;IACH,OAAO,CAAC,aAAa;IA0BrB;;OAEG;IACH,OAAO,CAAC,eAAe;IAIvB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAO7B;;OAEG;IACH,OAAO,CAAC,yBAAyB;IAOjC;;OAEG;IACH,OAAO,CAAC,yBAAyB;IAWjC;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAI/B;;OAEG;IACH,OAAO,CAAC,4BAA4B;IAWpC;;OAEG;IACH,OAAO,CAAC,8BAA8B;IAWtC;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAM5B;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAW/B;;OAEG;IACH,OAAO,CAAC,gCAAgC;IAuBxC;;OAEG;IACH,OAAO,CAAC,OAAO;IAwIf;;OAEG;IACH,OAAO,CAAC,YAAY;IAapB;;OAEG;IACH,IAAI,IAAI,IAAI;CAeb;AAED,eAAe,oBAAoB,CAAC;AACpC,OAAO,EACL,2BAA2B,GAC5B,CAAC"}
1
+ {"version":3,"file":"SourceDataAtmosphere.d.ts","sourceRoot":"","sources":["../../../../../../packages/realtime-runtime/src/transport/atmosphere/SourceDataAtmosphere.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gCAAgC,EAChC,uBAAuB,EAEvB,+CAA+C,EAC/C,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAuGnD;;GAEG;AACH,iBAAS,2BAA2B,CAClC,MAAM,EAAE,+CAA+C,UA0BxD;AAED;;GAEG;AACH,qBAAa,yBAAyB;IAuClC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAtCvC,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,gBAAgB,CAAyD;IACjF,OAAO,CAAC,oBAAoB,CAAyD;IACrF,OAAO,CAAC,gBAAgB,CAAK;IAC7B,OAAO,CAAC,6BAA6B,CAAS;IAC9C,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,eAAe,CAAqB;IAC5C,OAAO,CAAC,mBAAmB,CAAuB;IAClD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAG1B;IAEJ;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAEjC;IAEF;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAElC;IAEF;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,6BAA6B,CAI5C;gBAGiB,UAAU,EAAE,uBAAuB,EACnC,mBAAmB,CAAC,EAA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