feat: send "End"-Message only once
- send "End" once, then fallback to "Idle" - update README
This commit is contained in:
parent
5bf9753dce
commit
4eedfcb965
2 changed files with 8 additions and 0 deletions
|
@ -53,6 +53,7 @@ All fields are mandatory and may not be ommitted.
|
|||
The server periodically (every second) sends JSON-encoded messages to all connected clients to update them on the current state of the Pomodoro session. These messages contain the following fields:
|
||||
|
||||
- mode: Indicates the current phase of the Pomodoro session ("Work", "ShortBreak", "LongBreak", "End" or "Idle").
|
||||
- "End" is send only once, after all sessions are finished
|
||||
- settings: Contains the current Pomodoro settings:
|
||||
- work: Length of the work session in seconds (e.g., 1500 for 25 minutes).
|
||||
- shortBreak: Length of the short break in seconds (e.g., 300 for 5 minutes).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue