Sebastian Mark
aab6896c7d
- create a new shared state file to manage message state
- replace broadcast.Message with shared.Message in pomodoro logic
- update websocket client handling to use shared.Clients
- remove unnecessary broadcast imports from various files
- ensure consistent message handling across the application
🤖
14 lines
233 B
Go
14 lines
233 B
Go
package shared
|
|
|
|
import (
|
|
"git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
|
)
|
|
|
|
var Message = models.ServerMessage{
|
|
Mode: "none",
|
|
Session: 0,
|
|
TotalSession: 0,
|
|
TimeLeft: 0,
|
|
Ongoing: false,
|
|
Paused: false,
|
|
}
|