Kemal::EventStream
Helper for Server-Sent Events (SSE) responses.
Sets the required headers and formats events according to the SSE spec.
Constructors
new(response : HTTP::Server::Response)
SourceClass methods
Runs an SSE handler with headers configured and yields an EventStream.
Instance methods
close
Sourcecomment(text : String) : self
Sends a keep-alive comment (ignored by clients, useful during idle periods).
flush
Source