Module: Cramp::KeepConnectionAlive::ClassMethods

Defined in:
lib/cramp/keep_connection_alive.rb

Instance Method Summary collapse

Instance Method Details

#keep_connection_alive(options = {}) ⇒ Object



8
9
10
11
# File 'lib/cramp/keep_connection_alive.rb', line 8

def keep_connection_alive(options = {})
  options = { :every => 15 }.merge(options)
  periodic_timer :keep_connection_alive, options
end