From 28342058aa7d8ee5c2f4b743a175d9f732eb06ce Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Mon, 21 Oct 2024 09:37:07 +0200 Subject: [PATCH] doc: update comments --- internal/websocket/broadcast.go | 2 +- internal/websocket/client_commands.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/websocket/broadcast.go b/internal/websocket/broadcast.go index 728726a..02b7f0a 100644 --- a/internal/websocket/broadcast.go +++ b/internal/websocket/broadcast.go @@ -8,7 +8,7 @@ import ( "time" ) -// BroadcastMessage sends a message to all connected WebSocket clients. +// sends continous messages to all connected WebSocket clients. func SendPermanentBroadCastMessage() { for { // Marshal the message into JSON format diff --git a/internal/websocket/client_commands.go b/internal/websocket/client_commands.go index df4fdc3..17560aa 100644 --- a/internal/websocket/client_commands.go +++ b/internal/websocket/client_commands.go @@ -10,7 +10,7 @@ import ( var unsetPomodoroConfig models.GoTomatoPomodoroConfig // used to check if client passed a config json -// handleClientCommands listens for commands from WebSocket clients and dispatches to the timer. +// handleClientCommands listens for commands from WebSocket clients func handleClientCommands(ws *websocket.Conn) { for { var clientCommand models.ClientCommand