class Radbas::ServerSentEvents::Stream

Defined in:

radbas-framework/server_sent_events.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : IO) #

[View source]

Instance Method Detail

def close : Nil #

[View source]
def closed? : Bool #

[View source]
def idle_time : Int32 #

[View source]
def on_close(&on_close : -> ) #

[View source]
def send(message : Message) : Nil #

[View source]
def send(data : Iterable(String), event : String | Nil = nil, id : String | Nil = nil, retry : Int64 | Nil = nil) : Nil #

[View source]
def start : Nil #

[View source]