diff --git a/internal/websocket/client_commands.go b/internal/websocket/client_commands.go index e1ff8b0..45fe7de 100644 --- a/internal/websocket/client_commands.go +++ b/internal/websocket/client_commands.go @@ -9,11 +9,12 @@ import ( "log" ) +var pomodoroConfig = shared.DefaultPomodoroConfig + // handleClientCommands listens for commands from WebSocket clients func handleClientCommands(ws *websocket.Conn) { for { var clientCommand models.ClientCommand - var pomodoroConfig = shared.DefaultPomodoroConfig _, message, err := ws.ReadMessage() if err != nil {