method

subscribe

rails latest stable - Class: ActionCable::SubscriptionAdapter::EventedRedis

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

subscribe(channel, message_callback, success_callback = nil)
public

No documentation available.

# File actioncable/lib/action_cable/subscription_adapter/evented_redis.rb, line 41
      def subscribe(channel, message_callback, success_callback = nil)
        redis_connection_for_subscriptions.pubsub.subscribe(channel, &message_callback).tap do |result|
          result.callback { |reply| success_callback.call } if success_callback
        end
      end