class

Mangrullo::SSE

Inherits HTTP::Handler < Reference < Object

Server-Sent Events for real-time progress updates

Class methods

broadcast(event : Event)

Broadcast an event to all connected clients

Source
client_count

Get active client count

Source
register_client(client_id : String, io : IO::Memory)

Register a new SSE client

Source
send_to_client(client_id : String, event : Event)

Send an event to a specific client

Source
unregister_client(client_id : String)

Unregister an SSE client

Source

Instance methods

call(context)

Call next handler in chain

Source

Nested types