# File lib/pry-remote-em/client.rb, line 20 def start(host = PryRemoteEm::DEFHOST, port = PryRemoteEM::DEFPORT, opts = {:tls => false}) EM.connect(host || PryRemoteEm::DEFHOST, port || PryRemoteEm::DEFPORT, PryRemoteEm::Client, opts) do |c| c.callback { yield if block_given? } c.errback do |e| Kernel.puts "[pry-remote-em] connection failed\n#{e}" yield(e) if block_given? end end end