Debian Codegraph @

www/src/content/reference/02-headers/09-Last-Event-ID.md

raw symbols SCIP
1 ---
2 title: "Last-Event-ID"
3 description: "Last received SSE event ID for reconnection"
4 ---
5
6 The `Last-Event-ID` request header is sent during SSE reconnection to resume from the last received event.
7
8 The server uses this to skip duplicate events and continue streaming from the correct point.
9
10 ## Example
11
12 ```http
13 Last-Event-ID: 12345
14 ```
15
16 ```python
17 last_id = request.headers.get('Last-Event-ID')
18 # Resume events after this ID
19 events = get_events(after_id=last_id)
20 ```