struct

Freshen::Event

Inherits Struct < Value < Object

Structured SSE event record representing wire-format Server-Sent Events.

Constructors

new(name : String = "reload", data : String = "reload", id : String | Nil = nil, retry_ms : Int32 | Nil = nil)
Source

Instance methods

clone
Source
copy_with(name _name = @name, data _data = @data, id _id = @id, retry_ms _retry_ms = @retry_ms)
Source
data
id
name
retry_ms
to_sse

Formats the event into standard SSE wire protocol format.

Source