Skip to main content

Module events

Module events 

Source
Expand description

SSE event stream client for OpenCode’s /event endpoint.

Structs§

OpenCodeEvents
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.