diff options
-rw-r--r-- | lib/action_cable/channel/base.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/action_cable/channel/base.rb b/lib/action_cable/channel/base.rb index 3de932858a..ec14e13dfa 100644 --- a/lib/action_cable/channel/base.rb +++ b/lib/action_cable/channel/base.rb @@ -93,6 +93,7 @@ module ActionCable self.class.on_unsubscribe_callbacks.each { |callback| send(callback) } end + def start_periodic_timers self.class.periodic_timers.each do |callback, options| @_active_periodic_timers << EventMachine::PeriodicTimer.new(options[:every]) do @@ -105,6 +106,7 @@ module ActionCable @_active_periodic_timers.each {|t| t.cancel } end + def worker_pool connection.worker_pool end |