module PryRemoteEm::Client::Broker
Public Instance Methods
log()
click to toggle source
# File lib/pry-remote-em/client/broker.rb, line 9 def log return opts[:logger] if opts[:logger] @log ||= Logger.new(STDERR) end
ssl_handshake_completed()
click to toggle source
# File lib/pry-remote-em/client/broker.rb, line 20 def ssl_handshake_completed succeed(self) end
unbind()
click to toggle source
# File lib/pry-remote-em/client/broker.rb, line 24 def unbind log.info("[pry-remote-em broker-client] broker connection unbound starting a new one") # Give the existing broker a little time to release the port. Even if the # restart here fails the next time a server tries to register, a new client # will be created; when that fails Broker#restart will be called again. EM::Timer.new(rand(0.9)) do PryRemoteEm::Broker.restart end end