diff --git a/src/client/app/common/scripts/stream.ts b/src/client/app/common/scripts/stream.ts index 980330c4e4..c588d1bb39 100644 --- a/src/client/app/common/scripts/stream.ts +++ b/src/client/app/common/scripts/stream.ts @@ -170,7 +170,7 @@ abstract class Connection extends EventEmitter { const type = payload === undefined ? typeOrPayload.type : typeOrPayload; const body = payload === undefined ? typeOrPayload.body : payload; - this.stream.send('channel', { + this.stream.send('ch', { id: this.id, type: type, body: body diff --git a/src/server/api/stream/index.ts b/src/server/api/stream/index.ts index ef6397fcd9..1014343bbf 100644 --- a/src/server/api/stream/index.ts +++ b/src/server/api/stream/index.ts @@ -58,6 +58,7 @@ export default class Connection { case 'connect': this.onChannelConnectRequested(body); break; case 'disconnect': this.onChannelDisconnectRequested(body); break; case 'channel': this.onChannelMessageRequested(body); break; + case 'ch': this.onChannelMessageRequested(body); break; // alias } }