Sha256: 51afbeaaeb3022390b2ad61023933f51f3556d5e21769a1e9590cea3fef45407

Contents?: true

Size: 696 Bytes

Versions: 94

Compression:

Stored size: 696 Bytes

Contents

# frozen_string_literal: true

module ActionCable
  module SubscriptionAdapter
    class Base
      attr_reader :logger, :server

      def initialize(server)
        @server = server
        @logger = @server.logger
      end

      def broadcast(channel, payload)
        raise NotImplementedError
      end

      def subscribe(channel, message_callback, success_callback = nil)
        raise NotImplementedError
      end

      def unsubscribe(channel, message_callback)
        raise NotImplementedError
      end

      def shutdown
        raise NotImplementedError
      end

      def identifier
        @server.config.cable[:id] ||= "ActionCable-PID-#{$$}"
      end
    end
  end
end

Version data entries

94 entries across 89 versions & 9 rubygems

Version Path
actioncable-6.1.7.8 lib/action_cable/subscription_adapter/base.rb
actioncable-7.1.3.2 lib/action_cable/subscription_adapter/base.rb
actioncable-7.1.3.1 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.8.1 lib/action_cable/subscription_adapter/base.rb
actioncable-6.1.7.7 lib/action_cable/subscription_adapter/base.rb
actioncable-7.1.3 lib/action_cable/subscription_adapter/base.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actioncable-7.0.2.3/lib/action_cable/subscription_adapter/base.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actioncable-6.1.6.1/lib/action_cable/subscription_adapter/base.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actioncable-7.0.3.1/lib/action_cable/subscription_adapter/base.rb
actioncable-7.1.2 lib/action_cable/subscription_adapter/base.rb
actioncable-7.1.1 lib/action_cable/subscription_adapter/base.rb
actioncable-7.1.0 lib/action_cable/subscription_adapter/base.rb
actioncable-7.1.0.rc2 lib/action_cable/subscription_adapter/base.rb
actioncable-7.1.0.rc1 lib/action_cable/subscription_adapter/base.rb
actioncable-7.1.0.beta1 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.8 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.7.2 lib/action_cable/subscription_adapter/base.rb
actioncable-6.1.7.6 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.7.1 lib/action_cable/subscription_adapter/base.rb
actioncable-6.1.7.5 lib/action_cable/subscription_adapter/base.rb