diff --git a/src/bapsicle.ts b/src/bapsicle.ts index 9b0cd9e..e2440d5 100644 --- a/src/bapsicle.ts +++ b/src/bapsicle.ts @@ -151,6 +151,11 @@ export function sendBAPSicleChannel(message: any): void { message = JSON.stringify(message); console.log("Sending message to BAPSicle:", message); BAPSicleWS.send(message); + } else { + console.warn( + "Trying to send message without BAPSicle WS connection:", + message + ); } }