class Firehose::Rack::Ping
Allows the Firehose
client to periodically “ping” the server so that the connection isn’t timed out by browsers or proxies from inactivity.
Attributes
redis[R]
Public Class Methods
new(redis=nil)
click to toggle source
# File lib/firehose/rack/ping.rb, line 11 def initialize(redis=nil) @redis = redis end
Public Instance Methods
call(env)
click to toggle source
# File lib/firehose/rack/ping.rb, line 15 def call(env) PingCheck.new(env, redis).call ASYNC_RESPONSE end