Method: JsChat::Bridge#active?
- Defined in:
- lib/jschat/http/jschat.rb
#active? ⇒ Boolean
131 132 133 134 135 136 137 138 139 140 |
# File 'lib/jschat/http/jschat.rb', line 131 def active? return false unless response = ping if response.nil? or response['display'] == 'error' @last_error = response false else true end end |