kb-server 0.0.1-beta.28 → 0.0.1-beta.29
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.
|
@@ -110,9 +110,9 @@ const packSSE = (sseHandlers, options) => {
|
|
|
110
110
|
took = Date.now() - start;
|
|
111
111
|
logger_1.logger.log("info", `发送消息:\n${response}`);
|
|
112
112
|
logger_1.logger.log("info", `耗时:${took} ms - RequestId: ${requestId}`);
|
|
113
|
-
// 延迟
|
|
113
|
+
// 延迟1ms关闭连接
|
|
114
114
|
res.write(response);
|
|
115
|
-
await (0, sleep_1.sleep)(
|
|
115
|
+
await (0, sleep_1.sleep)(1);
|
|
116
116
|
return res.end();
|
|
117
117
|
}
|
|
118
118
|
};
|