Expand description
SSE event stream client for OpenCode’s /event endpoint.
Structs§
- Open
Code Events - SSE stream client with automatic reconnection.
Enums§
- SseEvent
- Events received from the OpenCode SSE stream.
Functions§
- next_
reconnect_ delay - Computes the next reconnect delay using exponential backoff, capped at 30s.
- parse_
sse_ block - Extracts the data field from an SSE block and returns the parsed event.