Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit bf79683

Browse files
committed
修改 命令执行 API
1 parent 475674b commit bf79683

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routers/stream_router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ routerApp.on("stream/detail", async (ctx) => {
9797
});
9898

9999
// 执行命令,适用于普通进程的行式交互输入输出流
100-
routerApp.on("stream/command", async (ctx, data) => {
100+
routerApp.on("stream/input", async (ctx, data) => {
101101
try {
102102
const command = data.command;
103103
const instanceUuid = ctx.session.stream.instanceUuid;
@@ -109,7 +109,7 @@ routerApp.on("stream/command", async (ctx, data) => {
109109
});
110110

111111
// 处理终端输入,适用于伪终端的直连输入输出流。
112-
routerApp.on("stream/input", async (ctx, data) => {
112+
routerApp.on("stream/write", async (ctx, data) => {
113113
try {
114114
const input = data.input;
115115
const instanceUuid = ctx.session.stream.instanceUuid;

0 commit comments

Comments
 (0)