struct

MCP::Shared::SSEEvent

Inherits Struct < Value < Object

A parsed Server-Sent Events frame.

Constructors

new(id : Nil | String = nil, event : String = "message", data : String = "", retry : Int32 | Nil = nil)
Source

Instance methods

data
Source
data=(data : String)
Source
event

Defaults to "message" per the SSE spec when no event: field present.

Source
event=(event : String)

Defaults to "message" per the SSE spec when no event: field present.

Source
id=(id : String | Nil)
Source
retry
Source
retry=(retry : Int32 | Nil)
Source