class FWC::TraceConnection
Public Class Methods
new(instances)
click to toggle source
# File lib/fwc.rb, line 38 def initialize instances @instances = instances end
Public Instance Methods
receive_line(line)
click to toggle source
# File lib/fwc.rb, line 47 def receive_line line data = JSON.load line @instances.each do |instance| instance.receive data end end
unbind()
click to toggle source
# File lib/fwc.rb, line 42 def unbind FWC.log.error "Connection lost" EM.stop end