struct HTTP::ServerSentEvents::Handler::EventStream

Defined in:

sse/server_sent_events_handler.cr

Constant Summary

DEFAULT_EVENT_SOURCE_KEY = "_default"

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : IO, last_event_id : Nil | String = nil) #

[View source]

Instance Method Detail

def last_event_id : String | Nil #

[View source]
def run #

[View source]
def source(key : String = DEFAULT_EVENT_SOURCE_KEY, &event_source : -> EventMessage | Nil) : EventStream #

[View source]