Class: SSE::StreamEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/ld-eventsource/events.rb

Overview

Server-Sent Event type used by Client. Use Client#on_event to receive events.

Instance Attribute Summary collapse

Instance Attribute Details

#dataString



19
# File 'lib/ld-eventsource/events.rb', line 19

StreamEvent = Struct.new(:type, :data, :id, :last_event_id)

#idString



19
# File 'lib/ld-eventsource/events.rb', line 19

StreamEvent = Struct.new(:type, :data, :id, :last_event_id)

#last_event_idString



19
# File 'lib/ld-eventsource/events.rb', line 19

StreamEvent = Struct.new(:type, :data, :id, :last_event_id)

#typeSymbol



19
# File 'lib/ld-eventsource/events.rb', line 19

StreamEvent = Struct.new(:type, :data, :id, :last_event_id)