Add alias
This commit is contained in:
parent
db248a69c8
commit
9bebbf4e03
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue