Added heartbeat response in Connection.ts
This commit is contained in:
parent
7ad73fedfb
commit
077fb751b5
|
|
@ -161,6 +161,7 @@ export default class Connection {
|
|||
case 'disconnect': this.onChannelDisconnectRequested(body); break;
|
||||
case 'channel': this.onChannelMessageRequested(body); break;
|
||||
case 'ch': this.onChannelMessageRequested(body); break; // alias
|
||||
case 'h': this.wsConnection.send('h'); break; // heartbeat response
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue