Class: Angelo::Base::EventSource
- Inherits:
-
Object
- Object
- Angelo::Base::EventSource
- Extended by:
- Forwardable
- Defined in:
- lib/angelo/base.rb
Instance Attribute Summary collapse
-
#socket ⇒ Object
readonly
Returns the value of attribute socket.
Instance Method Summary collapse
- #event(name, data = nil) ⇒ Object
-
#initialize(socket) ⇒ EventSource
constructor
A new instance of EventSource.
- #message(data) ⇒ Object
Constructor Details
#initialize(socket) ⇒ EventSource
Returns a new instance of EventSource.
319 320 321 |
# File 'lib/angelo/base.rb', line 319 def initialize socket @socket = socket end |
Instance Attribute Details
#socket ⇒ Object (readonly)
Returns the value of attribute socket.
317 318 319 |
# File 'lib/angelo/base.rb', line 317 def socket @socket end |