feat: introduce vars.go for websocket package

- update comments
- move `Done` variable to vars.go
- move `Connected()` method

🤖
This commit is contained in:
Sebastian Mark 2024-11-21 12:25:45 +01:00
parent 342ecde6bb
commit 9b7dc19935
3 changed files with 10 additions and 7 deletions

View file

@ -9,8 +9,6 @@ import (
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
)
var Done = make(chan struct{})
// Receives websocket messages and writes them to a channel.
// Closes the channel if websocket closes.
func (c *Client) ProcessServerMessages(channel chan<- GoTomato.ServerMessage) {