module Envoy::Client

Public Class Methods

run(options = {}) click to toggle source
# File lib/envoy/client/channel.rb, line 54
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