Sebastian Mark
0ca90b50a5
- 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
🤖
8 lines
183 B
Go
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
|
|
}
|