Module: Envoy::Client

Defined in:
lib/envoy/client/trunk.rb,
lib/envoy/client/channel.rb

Defined Under Namespace

Modules: Channel, Trunk

Class Method Summary collapse

Class Method Details

.run(options = {}) ⇒ Object



67
68
69
70
71
72
73
74
75
76
# File 'lib/envoy/client/channel.rb', line 67

def self.run (options = {})
  unless EM.reactor_running?
    EM.run do
      EM.add_periodic_timer(0.1) do
        $reloader.(0)
      end
      EM.connect options[:server_host], options[:server_port], self, options
    end
  end
end