File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,15 +38,18 @@ export const cache: cache = {
3838// Tosu WebSocket connection
3939const DEFAULT_HOST = window . location . host ;
4040const wsManager = new WebSocketManager ( DEFAULT_HOST ) ;
41+ const SETTINGS_LOG_PREFIX = "[SETTINGS]" ;
4142// Initialize WebSocket connection
4243
44+ console . log ( `${ SETTINGS_LOG_PREFIX } Requesting settings for path` , window ?. COUNTER_PATH ) ;
4345wsManager . sendCommand ( "getSettings" , encodeURI ( < string > window . COUNTER_PATH ) ) ;
4446wsManager . commands ( ( data : CommandData ) => {
4547 try {
4648 const { command, message } = data ;
4749 console . log ( "[WEBSOCKET] Received command:" , command , "with data:" , message ) ;
4850
4951 if ( command === "getSettings" ) {
52+ console . log ( `${ SETTINGS_LOG_PREFIX } Received settings payload` ) ;
5053 updateSettings ( message ) ;
5154 }
5255 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments