@ellipsis-dev/sdk 0.27.0 → 0.28.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/dist/{chunk-RMPAMUAE.js → chunk-YJC53TA7.js} +11 -1
- package/dist/index.d.ts +1749 -72
- package/dist/index.js +887 -84
- package/dist/store/index.d.ts +5 -2
- package/dist/store/index.js +217 -23
- package/dist/stream/index.d.ts +2 -2
- package/dist/stream/index.js +1 -1
- package/dist/{types-ClEF_IA9.d.ts → types-B-jIFh4_.d.ts} +20446 -10002
- package/package.json +1 -1
- package/schema/collection_frames.schema.json +3623 -0
- package/schema/frames.schema.json +9534 -3142
- package/schema/lifecycle.schema.json +18 -0
- package/schema/openapi.v1.json +25149 -8434
- package/schema/trigger_fields.schema.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/stream/index.ts
|
|
2
|
-
var SESSION_STREAM_PROTOCOL_VERSION =
|
|
2
|
+
var SESSION_STREAM_PROTOCOL_VERSION = 4;
|
|
3
3
|
var WS_CLOSE_NORMAL = 1e3;
|
|
4
4
|
var WS_CLOSE_GOING_AWAY = 1001;
|
|
5
5
|
var WS_CLOSE_UNSUPPORTED_PROTOCOL_VERSION = 1002;
|
|
@@ -93,6 +93,16 @@ function connectOnce(sock, emit, signal) {
|
|
|
93
93
|
} catch {
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
|
+
if (!frame || ![
|
|
97
|
+
"snapshot",
|
|
98
|
+
"records_append",
|
|
99
|
+
"session",
|
|
100
|
+
"delta",
|
|
101
|
+
"heartbeat",
|
|
102
|
+
"done",
|
|
103
|
+
"error"
|
|
104
|
+
].includes(frame.type))
|
|
105
|
+
return;
|
|
96
106
|
emit(frame);
|
|
97
107
|
if (frame.type === "done") {
|
|
98
108
|
finish({ kind: "done" });
|