Sha256: 51afbeaaeb3022390b2ad61023933f51f3556d5e21769a1e9590cea3fef45407

Contents?: true

Size: 696 Bytes

Versions: 93

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

93 entries across 88 versions & 8 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/actioncable-7.1.3.4/lib/action_cable/subscription_adapter/base.rb
actioncable-7.1.5.1 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.8.7 lib/action_cable/subscription_adapter/base.rb
actioncable-7.1.5 lib/action_cable/subscription_adapter/base.rb
actioncable-7.1.4.2 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.8.6 lib/action_cable/subscription_adapter/base.rb
actioncable-6.1.7.10 lib/action_cable/subscription_adapter/base.rb
actioncable-6.1.7.9 lib/action_cable/subscription_adapter/base.rb
actioncable-7.1.4.1 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.8.5 lib/action_cable/subscription_adapter/base.rb
actioncable-7.1.4 lib/action_cable/subscription_adapter/base.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actioncable-7.0.8.4/lib/action_cable/subscription_adapter/base.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actioncable-7.1.3.4/lib/action_cable/subscription_adapter/base.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/actioncable-7.0.5.1/lib/action_cable/subscription_adapter/base.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/actioncable-7.0.5.1/lib/action_cable/subscription_adapter/base.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/actioncable-7.0.5.1/lib/action_cable/subscription_adapter/base.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/actioncable-7.1.3.4/lib/action_cable/subscription_adapter/base.rb
actioncable-7.1.3.4 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.8.4 lib/action_cable/subscription_adapter/base.rb
actioncable-6.1.7.8 lib/action_cable/subscription_adapter/base.rb