Task: Add a logout message
This page documents a task in the Session lifecycle follow-up story. It captures the goal, current status, acceptance, and any notes or results.
1. Goal
Add a logout message type so the client can cleanly end its session — mirroring the existing login flow.
2. Status
| Field | Value |
|---|---|
| State | DONE |
| Parent story | Session lifecycle follow-up |
| Now | Completed 2025-12-04. |
| Waiting on | None. |
| Next | None. |
| Last touched | 2025-12-04 |
3. Acceptance
logout_request/responsemessage types in the protocol.- Server-side handler closes the session and logs the event.
- Client emits logout on disconnect intent.
4. Plan
(Plan was distilled into the parent story's * Decisions and cleared when the task closed.)
5. Notes
- Plays into session cancellation: server gets a clean signal rather than seeing the connection drop.
6. Result
Logout message shipped end-to-end.