From f9844d9d4d1a4d6811c40f0dfad1a20ec26157aa Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sun, 7 Sep 2025 10:40:39 -0400 Subject: [PATCH] [skip ci] Ignore "sendDebugCommand" - [13, [sendDebugCommand, {debugCommand: stats4nerds }]] --- .../src/components/Services/LoungeService/LoungeApi.bs | 4 ++++ .../src/components/Services/LoungeService/LoungeConstants.bs | 1 + 2 files changed, 5 insertions(+) diff --git a/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs b/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs index 26a38a0e..7be7f880 100644 --- a/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs +++ b/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs @@ -66,6 +66,7 @@ class LoungeApi commandHandlers[COMMAND_TYPE_GET_DISCOVERT_DEVICE_ID] = m.HandleIgnoreCommand commandHandlers[COMMAND_TYPE_GRACEFUL_RECONNECT] = m.HandleIgnoreCommand commandHandlers[COMMAND_TYPE_GET_RECEIVER_STATUS] = m.HandleIgnoreCommand + commandHandlers[COMMAND_TYPE_SEND_DEBUG_COMMAND] = m.HandleIgnoreCommand commandHandlers[COMMAND_TYPE_GET_NOW_PLAYING] = m.HandleGetPlayingNow commandHandlers[COMMAND_TYPE_SESSION_ID] = m.HandleSessionId @@ -323,6 +324,9 @@ class LoungeApi m[handler](commandIndex, commandType, commandArgs, messagesToSend) else LogWarn("Unknown command type:", commandType, "command:", command) + #if DEBUG + throw `Unknown command type: ${commandType} command: ${ToString(command)}` + #end if end if end for end function diff --git a/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs b/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs index 5acd4e3a..f5d660aa 100644 --- a/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs +++ b/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs @@ -28,6 +28,7 @@ const COMMAND_TYPE_ON_USER_ACTIVITY = "onUserActivity" const COMMAND_TYPE_GET_DISCOVERT_DEVICE_ID = "getDiscoveryDeviceId" const COMMAND_TYPE_GRACEFUL_RECONNECT = "gracefulReconnect" const COMMAND_TYPE_GET_RECEIVER_STATUS = "getReceiverStatus" +const COMMAND_TYPE_SEND_DEBUG_COMMAND = "sendDebugCommand" ' Special commands const COMMAND_TYPE_SESSION_ID = "c" const COMMAND_TYPE_G_SESSION_ID = "S"