@abloatai/humans 0.66.2 → 0.66.3
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.
|
@@ -137,12 +137,12 @@ export declare class SubscriptionManager {
|
|
|
137
137
|
/**
|
|
138
138
|
* Re-asserts the full desired set against the transport, forgetting what was
|
|
139
139
|
* previously confirmed. Call this after a reconnect: a fresh
|
|
140
|
-
* {@link SyncWebSocket} starts from the
|
|
141
|
-
*
|
|
140
|
+
* {@link SyncWebSocket} starts from the groups confirmed during connection,
|
|
141
|
+
* so the manager's diff baseline no longer reflects the new socket.
|
|
142
142
|
* Clearing that baseline makes the next reconcile push one
|
|
143
143
|
* `update_subscription` frame that re-establishes the current interest —
|
|
144
144
|
* including any warm or pinned groups that drifted while the connection was
|
|
145
|
-
* down. The
|
|
145
|
+
* down. The connection already carries the last-acknowledged set, so
|
|
146
146
|
* this is a correction, not the primary mechanism.
|
|
147
147
|
*/
|
|
148
148
|
resync(): Promise<void>;
|
|
@@ -174,12 +174,12 @@ export class SubscriptionManager {
|
|
|
174
174
|
/**
|
|
175
175
|
* Re-asserts the full desired set against the transport, forgetting what was
|
|
176
176
|
* previously confirmed. Call this after a reconnect: a fresh
|
|
177
|
-
* {@link SyncWebSocket} starts from the
|
|
178
|
-
*
|
|
177
|
+
* {@link SyncWebSocket} starts from the groups confirmed during connection,
|
|
178
|
+
* so the manager's diff baseline no longer reflects the new socket.
|
|
179
179
|
* Clearing that baseline makes the next reconcile push one
|
|
180
180
|
* `update_subscription` frame that re-establishes the current interest —
|
|
181
181
|
* including any warm or pinned groups that drifted while the connection was
|
|
182
|
-
* down. The
|
|
182
|
+
* down. The connection already carries the last-acknowledged set, so
|
|
183
183
|
* this is a correction, not the primary mechanism.
|
|
184
184
|
*/
|
|
185
185
|
resync() {
|
|
@@ -11,9 +11,9 @@ export function wireSocketEvents(deps) {
|
|
|
11
11
|
deps.updateSyncStatus({ offlineSince: undefined });
|
|
12
12
|
}
|
|
13
13
|
// Re-assert read interest on every (re)connect. After a transient
|
|
14
|
-
// reconnect the socket
|
|
15
|
-
// changed while offline; after a full reconnect the new socket
|
|
16
|
-
//
|
|
14
|
+
// reconnect the socket restores its last confirmed groups, but interest
|
|
15
|
+
// may have changed while offline; after a full reconnect the new socket
|
|
16
|
+
// starts with only base groups. `resync` re-pushes the current desired set
|
|
17
17
|
// so the server-side index matches what the user is actually viewing.
|
|
18
18
|
void deps.areaOfInterest.resync();
|
|
19
19
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abloatai/humans",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.3",
|
|
4
4
|
"description": "The optional human-facing local-state package for Ablo: presence, live queries, and React bindings.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"directory": "packages/humans"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@abloatai/transaction": "0.66.
|
|
88
|
+
"@abloatai/transaction": "0.66.3",
|
|
89
89
|
"events": "^3.3.0",
|
|
90
90
|
"mobx": "^6.13.7",
|
|
91
91
|
"uuid": "^11.1.0",
|
|
@@ -232,12 +232,12 @@ export class SubscriptionManager {
|
|
|
232
232
|
/**
|
|
233
233
|
* Re-asserts the full desired set against the transport, forgetting what was
|
|
234
234
|
* previously confirmed. Call this after a reconnect: a fresh
|
|
235
|
-
* {@link SyncWebSocket} starts from the
|
|
236
|
-
*
|
|
235
|
+
* {@link SyncWebSocket} starts from the groups confirmed during connection,
|
|
236
|
+
* so the manager's diff baseline no longer reflects the new socket.
|
|
237
237
|
* Clearing that baseline makes the next reconcile push one
|
|
238
238
|
* `update_subscription` frame that re-establishes the current interest —
|
|
239
239
|
* including any warm or pinned groups that drifted while the connection was
|
|
240
|
-
* down. The
|
|
240
|
+
* down. The connection already carries the last-acknowledged set, so
|
|
241
241
|
* this is a correction, not the primary mechanism.
|
|
242
242
|
*/
|
|
243
243
|
resync(): Promise<void> {
|
|
@@ -49,9 +49,9 @@ export function wireSocketEvents<TCollaboration extends EventMap<TCollaboration>
|
|
|
49
49
|
deps.updateSyncStatus({ offlineSince: undefined });
|
|
50
50
|
}
|
|
51
51
|
// Re-assert read interest on every (re)connect. After a transient
|
|
52
|
-
// reconnect the socket
|
|
53
|
-
// changed while offline; after a full reconnect the new socket
|
|
54
|
-
//
|
|
52
|
+
// reconnect the socket restores its last confirmed groups, but interest
|
|
53
|
+
// may have changed while offline; after a full reconnect the new socket
|
|
54
|
+
// starts with only base groups. `resync` re-pushes the current desired set
|
|
55
55
|
// so the server-side index matches what the user is actually viewing.
|
|
56
56
|
void deps.areaOfInterest.resync();
|
|
57
57
|
});
|