react-native-nitro-sse 3.0.0 → 3.1.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/NitroSse.podspec +0 -1
- package/README.md +1 -1
- package/android/build.gradle +0 -1
- package/android/src/main/java/com/margelo/nitro/nitrosse/JsonUtils.kt +33 -10
- package/android/src/main/java/com/margelo/nitro/nitrosse/NitroSse.kt +366 -78
- package/android/src/main/java/com/margelo/nitro/nitrosse/SseConnectionHandler.kt +417 -94
- package/android/src/main/java/com/margelo/nitro/nitrosse/SseEventBuffer.kt +20 -0
- package/android/src/main/java/com/margelo/nitro/nitrosse/SseReconnectStrategy.kt +9 -0
- package/ios/NitroSse.swift +302 -49
- package/ios/SseConnectionHandler.swift +647 -97
- package/ios/SseEventBuffer.swift +19 -1
- package/ios/SseReconnectStrategy.swift +26 -7
- package/lib/module/MockSseEngine.js +72 -3
- package/lib/module/NitroSseClient.js +24 -1
- package/lib/typescript/src/MockSseEngine.d.ts +16 -0
- package/lib/typescript/src/SseInterface.d.ts +46 -3
- package/nitrogen/generated/android/c++/JHybridNitroSseSpec.cpp +4 -0
- package/nitrogen/generated/android/c++/JSseDisconnectReason.hpp +67 -0
- package/nitrogen/generated/android/c++/JSseStats.hpp +87 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrosse/SseDisconnectReason.kt +26 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrosse/SseStats.kt +108 -3
- package/nitrogen/generated/ios/NitroSse-Swift-Cxx-Bridge.hpp +18 -0
- package/nitrogen/generated/ios/NitroSse-Swift-Cxx-Umbrella.hpp +3 -0
- package/nitrogen/generated/ios/c++/HybridNitroSseSpecSwift.hpp +3 -0
- package/nitrogen/generated/ios/swift/SseDisconnectReason.swift +52 -0
- package/nitrogen/generated/ios/swift/SseStats.swift +217 -2
- package/nitrogen/generated/shared/c++/SseDisconnectReason.hpp +88 -0
- package/nitrogen/generated/shared/c++/SseStats.hpp +88 -2
- package/package.json +2 -2
|
@@ -28,9 +28,11 @@
|
|
|
28
28
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
29
|
#endif
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
// Forward declaration of `SseDisconnectReason` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::nitrosse { enum class SseDisconnectReason; }
|
|
32
33
|
|
|
33
34
|
#include <optional>
|
|
35
|
+
#include "SseDisconnectReason.hpp"
|
|
34
36
|
#include <string>
|
|
35
37
|
|
|
36
38
|
namespace margelo::nitro::nitrosse {
|
|
@@ -40,14 +42,35 @@ namespace margelo::nitro::nitrosse {
|
|
|
40
42
|
*/
|
|
41
43
|
struct SseStats final {
|
|
42
44
|
public:
|
|
45
|
+
double rawBytesReceived SWIFT_PRIVATE;
|
|
46
|
+
std::optional<double> decompressedBytesReceived SWIFT_PRIVATE;
|
|
43
47
|
double totalBytesReceived SWIFT_PRIVATE;
|
|
48
|
+
double chunksReceived SWIFT_PRIVATE;
|
|
49
|
+
std::optional<double> lastStatusCode SWIFT_PRIVATE;
|
|
50
|
+
double totalEventsReceived SWIFT_PRIVATE;
|
|
51
|
+
double commentsReceived SWIFT_PRIVATE;
|
|
52
|
+
double linesParsed SWIFT_PRIVATE;
|
|
53
|
+
double parseErrors SWIFT_PRIVATE;
|
|
54
|
+
std::optional<double> serverRetryDelayMs SWIFT_PRIVATE;
|
|
55
|
+
std::optional<double> connectedAt SWIFT_PRIVATE;
|
|
56
|
+
std::optional<double> timeToFirstByteMs SWIFT_PRIVATE;
|
|
57
|
+
std::optional<double> lastEventTime SWIFT_PRIVATE;
|
|
58
|
+
std::optional<double> lastHeartbeatTime SWIFT_PRIVATE;
|
|
59
|
+
double maxEventGapMs SWIFT_PRIVATE;
|
|
60
|
+
double eventsBuffered SWIFT_PRIVATE;
|
|
61
|
+
double peakBufferedEvents SWIFT_PRIVATE;
|
|
62
|
+
double bufferFlushCount SWIFT_PRIVATE;
|
|
63
|
+
double bufferOverflowCount SWIFT_PRIVATE;
|
|
64
|
+
double connectionAttempts SWIFT_PRIVATE;
|
|
44
65
|
double reconnectCount SWIFT_PRIVATE;
|
|
66
|
+
std::optional<double> lastReconnectDelayMs SWIFT_PRIVATE;
|
|
67
|
+
std::optional<SseDisconnectReason> disconnectReason SWIFT_PRIVATE;
|
|
45
68
|
std::optional<double> lastErrorTime SWIFT_PRIVATE;
|
|
46
69
|
std::optional<std::string> lastErrorCode SWIFT_PRIVATE;
|
|
47
70
|
|
|
48
71
|
public:
|
|
49
72
|
SseStats() = default;
|
|
50
|
-
explicit SseStats(double totalBytesReceived, double reconnectCount, std::optional<double> lastErrorTime, std::optional<std::string> lastErrorCode): totalBytesReceived(totalBytesReceived), reconnectCount(reconnectCount), lastErrorTime(lastErrorTime), lastErrorCode(lastErrorCode) {}
|
|
73
|
+
explicit SseStats(double rawBytesReceived, std::optional<double> decompressedBytesReceived, double totalBytesReceived, double chunksReceived, std::optional<double> lastStatusCode, double totalEventsReceived, double commentsReceived, double linesParsed, double parseErrors, std::optional<double> serverRetryDelayMs, std::optional<double> connectedAt, std::optional<double> timeToFirstByteMs, std::optional<double> lastEventTime, std::optional<double> lastHeartbeatTime, double maxEventGapMs, double eventsBuffered, double peakBufferedEvents, double bufferFlushCount, double bufferOverflowCount, double connectionAttempts, double reconnectCount, std::optional<double> lastReconnectDelayMs, std::optional<SseDisconnectReason> disconnectReason, std::optional<double> lastErrorTime, std::optional<std::string> lastErrorCode): rawBytesReceived(rawBytesReceived), decompressedBytesReceived(decompressedBytesReceived), totalBytesReceived(totalBytesReceived), chunksReceived(chunksReceived), lastStatusCode(lastStatusCode), totalEventsReceived(totalEventsReceived), commentsReceived(commentsReceived), linesParsed(linesParsed), parseErrors(parseErrors), serverRetryDelayMs(serverRetryDelayMs), connectedAt(connectedAt), timeToFirstByteMs(timeToFirstByteMs), lastEventTime(lastEventTime), lastHeartbeatTime(lastHeartbeatTime), maxEventGapMs(maxEventGapMs), eventsBuffered(eventsBuffered), peakBufferedEvents(peakBufferedEvents), bufferFlushCount(bufferFlushCount), bufferOverflowCount(bufferOverflowCount), connectionAttempts(connectionAttempts), reconnectCount(reconnectCount), lastReconnectDelayMs(lastReconnectDelayMs), disconnectReason(disconnectReason), lastErrorTime(lastErrorTime), lastErrorCode(lastErrorCode) {}
|
|
51
74
|
|
|
52
75
|
public:
|
|
53
76
|
friend bool operator==(const SseStats& lhs, const SseStats& rhs) = default;
|
|
@@ -63,16 +86,58 @@ namespace margelo::nitro {
|
|
|
63
86
|
static inline margelo::nitro::nitrosse::SseStats fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
64
87
|
jsi::Object obj = arg.asObject(runtime);
|
|
65
88
|
return margelo::nitro::nitrosse::SseStats(
|
|
89
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "rawBytesReceived"))),
|
|
90
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "decompressedBytesReceived"))),
|
|
66
91
|
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "totalBytesReceived"))),
|
|
92
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "chunksReceived"))),
|
|
93
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "lastStatusCode"))),
|
|
94
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "totalEventsReceived"))),
|
|
95
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "commentsReceived"))),
|
|
96
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "linesParsed"))),
|
|
97
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "parseErrors"))),
|
|
98
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "serverRetryDelayMs"))),
|
|
99
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "connectedAt"))),
|
|
100
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "timeToFirstByteMs"))),
|
|
101
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "lastEventTime"))),
|
|
102
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "lastHeartbeatTime"))),
|
|
103
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maxEventGapMs"))),
|
|
104
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "eventsBuffered"))),
|
|
105
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "peakBufferedEvents"))),
|
|
106
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bufferFlushCount"))),
|
|
107
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bufferOverflowCount"))),
|
|
108
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "connectionAttempts"))),
|
|
67
109
|
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "reconnectCount"))),
|
|
110
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "lastReconnectDelayMs"))),
|
|
111
|
+
JSIConverter<std::optional<margelo::nitro::nitrosse::SseDisconnectReason>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "disconnectReason"))),
|
|
68
112
|
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "lastErrorTime"))),
|
|
69
113
|
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "lastErrorCode")))
|
|
70
114
|
);
|
|
71
115
|
}
|
|
72
116
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitrosse::SseStats& arg) {
|
|
73
117
|
jsi::Object obj(runtime);
|
|
118
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "rawBytesReceived"), JSIConverter<double>::toJSI(runtime, arg.rawBytesReceived));
|
|
119
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "decompressedBytesReceived"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.decompressedBytesReceived));
|
|
74
120
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "totalBytesReceived"), JSIConverter<double>::toJSI(runtime, arg.totalBytesReceived));
|
|
121
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "chunksReceived"), JSIConverter<double>::toJSI(runtime, arg.chunksReceived));
|
|
122
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "lastStatusCode"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.lastStatusCode));
|
|
123
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "totalEventsReceived"), JSIConverter<double>::toJSI(runtime, arg.totalEventsReceived));
|
|
124
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "commentsReceived"), JSIConverter<double>::toJSI(runtime, arg.commentsReceived));
|
|
125
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "linesParsed"), JSIConverter<double>::toJSI(runtime, arg.linesParsed));
|
|
126
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "parseErrors"), JSIConverter<double>::toJSI(runtime, arg.parseErrors));
|
|
127
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "serverRetryDelayMs"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.serverRetryDelayMs));
|
|
128
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "connectedAt"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.connectedAt));
|
|
129
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "timeToFirstByteMs"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.timeToFirstByteMs));
|
|
130
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "lastEventTime"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.lastEventTime));
|
|
131
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "lastHeartbeatTime"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.lastHeartbeatTime));
|
|
132
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "maxEventGapMs"), JSIConverter<double>::toJSI(runtime, arg.maxEventGapMs));
|
|
133
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "eventsBuffered"), JSIConverter<double>::toJSI(runtime, arg.eventsBuffered));
|
|
134
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "peakBufferedEvents"), JSIConverter<double>::toJSI(runtime, arg.peakBufferedEvents));
|
|
135
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "bufferFlushCount"), JSIConverter<double>::toJSI(runtime, arg.bufferFlushCount));
|
|
136
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "bufferOverflowCount"), JSIConverter<double>::toJSI(runtime, arg.bufferOverflowCount));
|
|
137
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "connectionAttempts"), JSIConverter<double>::toJSI(runtime, arg.connectionAttempts));
|
|
75
138
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "reconnectCount"), JSIConverter<double>::toJSI(runtime, arg.reconnectCount));
|
|
139
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "lastReconnectDelayMs"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.lastReconnectDelayMs));
|
|
140
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "disconnectReason"), JSIConverter<std::optional<margelo::nitro::nitrosse::SseDisconnectReason>>::toJSI(runtime, arg.disconnectReason));
|
|
76
141
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "lastErrorTime"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.lastErrorTime));
|
|
77
142
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "lastErrorCode"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.lastErrorCode));
|
|
78
143
|
return obj;
|
|
@@ -85,8 +150,29 @@ namespace margelo::nitro {
|
|
|
85
150
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
86
151
|
return false;
|
|
87
152
|
}
|
|
153
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "rawBytesReceived")))) return false;
|
|
154
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "decompressedBytesReceived")))) return false;
|
|
88
155
|
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "totalBytesReceived")))) return false;
|
|
156
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "chunksReceived")))) return false;
|
|
157
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "lastStatusCode")))) return false;
|
|
158
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "totalEventsReceived")))) return false;
|
|
159
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "commentsReceived")))) return false;
|
|
160
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "linesParsed")))) return false;
|
|
161
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "parseErrors")))) return false;
|
|
162
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "serverRetryDelayMs")))) return false;
|
|
163
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "connectedAt")))) return false;
|
|
164
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "timeToFirstByteMs")))) return false;
|
|
165
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "lastEventTime")))) return false;
|
|
166
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "lastHeartbeatTime")))) return false;
|
|
167
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maxEventGapMs")))) return false;
|
|
168
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "eventsBuffered")))) return false;
|
|
169
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "peakBufferedEvents")))) return false;
|
|
170
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bufferFlushCount")))) return false;
|
|
171
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bufferOverflowCount")))) return false;
|
|
172
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "connectionAttempts")))) return false;
|
|
89
173
|
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "reconnectCount")))) return false;
|
|
174
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "lastReconnectDelayMs")))) return false;
|
|
175
|
+
if (!JSIConverter<std::optional<margelo::nitro::nitrosse::SseDisconnectReason>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "disconnectReason")))) return false;
|
|
90
176
|
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "lastErrorTime")))) return false;
|
|
91
177
|
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "lastErrorCode")))) return false;
|
|
92
178
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-nitro-sse",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "High-performance Server-Sent Events (SSE) for React Native, powered by Nitro Modules.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"test:android": "(cd example/android && ./gradlew :react-native-nitro-sse:testDebugUnitTest)",
|
|
44
44
|
"test:ios": "(cd example/ios && xcodebuild test -workspace NitroSseExample.xcworkspace -scheme NitroSse-Unit-Tests -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16e')",
|
|
45
45
|
"test:native": "yarn test:android && yarn test:ios",
|
|
46
|
-
"ci": "yarn lint && yarn typecheck && yarn test && yarn prepare && (cd example/ios && pod install) && yarn test:native && yarn turbo run build:android build:ios",
|
|
46
|
+
"ci": "yarn lint && yarn typecheck && yarn test && yarn prepare && (cd example/ios && pod install) && yarn test:native && yarn turbo run build:android build:ios && node -e \"console.log('Everything \\x1b[1;32msuccessful\\x1b[0m')\"",
|
|
47
47
|
"release": "release-it --only-version",
|
|
48
48
|
"server": "node example/script/sse-server.mjs",
|
|
49
49
|
"bench:server": "node example/script/sse-benchmark-server.mjs",
|