Warn if sending message to missing bapsicle server.
This commit is contained in:
parent
23c7487ef9
commit
3895ea2988
1 changed files with 5 additions and 0 deletions
|
@ -151,6 +151,11 @@ export function sendBAPSicleChannel(message: any): void {
|
||||||
message = JSON.stringify(message);
|
message = JSON.stringify(message);
|
||||||
console.log("Sending message to BAPSicle:", message);
|
console.log("Sending message to BAPSicle:", message);
|
||||||
BAPSicleWS.send(message);
|
BAPSicleWS.send(message);
|
||||||
|
} else {
|
||||||
|
console.warn(
|
||||||
|
"Trying to send message without BAPSicle WS connection:",
|
||||||
|
message
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue