diff --git a/src/server/api/streaming.ts b/src/server/api/streaming.ts index 8bfa5574f1..aed0e674f9 100644 --- a/src/server/api/streaming.ts +++ b/src/server/api/streaming.ts @@ -30,6 +30,9 @@ module.exports = (server: http.Server) => { type = payload.type; payload = payload.body; } + if (type.startsWith('api:')) { + type = payload.type.replace('api:', 'api-res:'); + } connection.send(JSON.stringify({ type: type, body: payload