Claudex.Stream.SSE.Event (Claudex v0.6.1)

Copy Markdown View Source

One raw Server-Sent Event: its name, its data, and the two reconnection fields the SSE spec defines.

This is the wire shape, before anything Claude-specific happens to it — data is still the undecoded string the server sent.

Summary

Types

t()

@type t() :: %Claudex.Stream.SSE.Event{
  data: String.t(),
  id: String.t() | nil,
  name: String.t() | nil,
  retry: non_neg_integer() | nil
}