@neta-art/cohub 1.5.0 → 1.5.1
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/dist/websocket.js +5 -3
- package/package.json +1 -1
package/dist/websocket.js
CHANGED
|
@@ -473,10 +473,12 @@ export class WebsocketClient {
|
|
|
473
473
|
}
|
|
474
474
|
const buffer = this.patchStreamBuffers.get(key);
|
|
475
475
|
if (!buffer) {
|
|
476
|
-
|
|
477
|
-
nextSeq: payload.baseSeq,
|
|
476
|
+
const newBuffer = {
|
|
477
|
+
nextSeq: payload.baseSeq + 1,
|
|
478
478
|
pending: new Map([[payload.seq, envelope]]),
|
|
479
|
-
}
|
|
479
|
+
};
|
|
480
|
+
this.patchStreamBuffers.set(key, newBuffer);
|
|
481
|
+
this.flushPatchStreamBuffer(newBuffer);
|
|
480
482
|
return;
|
|
481
483
|
}
|
|
482
484
|
if (payload.seq < buffer.nextSeq)
|