Class: Linner::Reactor::Client
- Inherits:
-
Object
- Object
- Linner::Reactor::Client
- Includes:
- Celluloid
- Defined in:
- lib/linner/reactor.rb
Instance Method Summary collapse
-
#initialize(socket) ⇒ Client
constructor
A new instance of Client.
- #notify_asset_change(path) ⇒ Object
Constructor Details
#initialize(socket) ⇒ Client
Returns a new instance of Client.
71 72 73 |
# File 'lib/linner/reactor.rb', line 71 def initialize(socket) @socket = socket end |
Instance Method Details
#notify_asset_change(path) ⇒ Object
75 76 77 78 79 80 81 82 83 |
# File 'lib/linner/reactor.rb', line 75 def notify_asset_change(path) data = { :path => path, :command => 'reload', :liveCSS => true } @socket << JSON.generate(data) rescue end |