class Linner::Reactor::Client
Public Class Methods
new(socket)
click to toggle source
# File lib/linner/reactor.rb, line 72 def initialize(socket) @socket = socket end
Public Instance Methods
notify_asset_change(path)
click to toggle source
# File lib/linner/reactor.rb, line 76 def notify_asset_change(path) data = { :path => path, :command => 'reload', :liveCSS => true } @socket << JSON.generate(data) rescue end