Added heartbeat response in Connection.ts

This commit is contained in:
Werner Kroneman 2024-12-08 12:50:29 +01:00
parent 7ad73fedfb
commit 077fb751b5

View file

@ -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
}
}