Sessions & Reconnection
Keep state across requests and dropped links.
Why Servers Need Memory
A remote server may handle many clients at once. To keep each conversation straight, it needs a way to remember who is who: that is a session. 🧠
The Session Is Born at Init
A session starts during the initialize handshake. The server greets the new client and sets up the state that will track this connection.
All lessons in this course
- Why stdio Isn't Enough
- The Streamable HTTP Transport
- Streaming Replies with SSE
- Sessions & Reconnection