kb-server 0.0.1-beta.40 → 0.0.1-beta.41
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.
|
@@ -104,7 +104,8 @@ const packSSE = (sseHandlers, options) => {
|
|
|
104
104
|
// 完成响应
|
|
105
105
|
took = Date.now() - start;
|
|
106
106
|
logger_1.logger.info(`耗时:${took} ms - ${requestId}`);
|
|
107
|
-
|
|
107
|
+
const response = (0, exports.createSSEMsg)("done", "[DONE]");
|
|
108
|
+
res.write(response, () => res.end());
|
|
108
109
|
};
|
|
109
110
|
await execution(params, { push, close, abortController }, ctx);
|
|
110
111
|
}
|