互換性を追加
This commit is contained in:
parent
922e81bb63
commit
9b3ee7cae6
1 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,9 @@ module.exports = (server: http.Server) => {
|
||||||
type = payload.type;
|
type = payload.type;
|
||||||
payload = payload.body;
|
payload = payload.body;
|
||||||
}
|
}
|
||||||
|
if (type.startsWith('api:')) {
|
||||||
|
type = payload.type.replace('api:', 'api-res:');
|
||||||
|
}
|
||||||
connection.send(JSON.stringify({
|
connection.send(JSON.stringify({
|
||||||
type: type,
|
type: type,
|
||||||
body: payload
|
body: payload
|
||||||
|
|
Loading…
Reference in a new issue