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