ChronoTomato/pkg/models/client.go
Sebastian Mark 0ca90b50a5 feat: refactor client handling and introduce websocket client type
- add new websocket.Client type
- change Connect and Disconnect functions to use the new Client type
- implement methods for sending commands and updating settings on Client
- update keyhandler to use websocket.Client instead of ChronoTomato.Client
- modify UpdateLoop to accept websocket.Client
- refactor ProcessServerMessages to accept the new Client type

🤖
2024-10-30 08:57:10 +01:00

8 lines
183 B
Go

package models
import "github.com/gorilla/websocket"
// Represents a websocket client
type PomodoroClient struct {
Conn *websocket.Conn // The websocket connection of the client
}