Warn if sending message to missing bapsicle server.

This commit is contained in:
Matthew Stratford 2021-09-07 22:57:50 +01:00
parent 23c7487ef9
commit 3895ea2988

View file

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