server: check that channel id is specified
All checks were successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Johann150 2023-04-15 18:14:57 +02:00
parent 8c47f376dc
commit ae703cfe4b
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -332,6 +332,7 @@ export class Connection {
* @param data The message to be sent.
*/
private onChannelMessageRequested(data: Record<string, any>) {
if (!data.id) return;
this.channels[data.id]?.onMessage?.(data.type, data.body);
}