From e00b5f11cb97749bb8b1907d3671109033e3829a Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 8 Oct 2018 08:58:12 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BA=92=E6=8F=9B=E6=80=A7=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/api/streaming.ts | 3 +++ 1 file changed, 3 insertions(+) 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