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.
Goal
Add a logout message type so the client can cleanly end its session — mirroring the existing login flow.
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 |
Acceptance
logout_request/responsemessage types in the protocol.- Server-side handler closes the session and logs the event.
- Client emits logout on disconnect intent.
Plan
(Plan was distilled into the parent story's * Decisions and cleared when the task closed.)
Notes
- Plays into session cancellation: server gets a clean signal rather than seeing the connection drop.
Result
Logout message shipped end-to-end.