Parent

Twitter::JSONStream

Protected Instance Methods

reconnect_after(timeout) click to toggle source
# File lib/earthquake/ext.rb, line 4
def reconnect_after timeout
  @reconnect_callback.call(timeout, @reconnect_retries) if @reconnect_callback

  if timeout == 0
    reconnect @options[:host], @options[:port]
    start_tls if @options[:ssl]
  else
    EM.add_timer(timeout) do
      reconnect @options[:host], @options[:port]
      start_tls if @options[:ssl]
    end
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.