Class: Quonfig::StreamEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/quonfig/sse_config_client.rb

Overview

Event delivered to on_envelope. id mirrors the SSE id: field and is consumed by callers that want the server cursor (tests + last-event-id resume). data is the raw data: payload string. envelope is the parsed Quonfig::ConfigEnvelope.

Instance Attribute Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



13
14
15
# File 'lib/quonfig/sse_config_client.rb', line 13

def data
  @data
end

#envelopeObject

Returns the value of attribute envelope

Returns:

  • (Object)

    the current value of envelope



13
14
15
# File 'lib/quonfig/sse_config_client.rb', line 13

def envelope
  @envelope
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



13
14
15
# File 'lib/quonfig/sse_config_client.rb', line 13

def id
  @id
end