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-7.0.2.4 lib/action_cable/subscription_adapter/base.rb
actioncable-6.1.5.1 lib/action_cable/subscription_adapter/base.rb
actioncable-6.1.5 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.2.3 lib/action_cable/subscription_adapter/base.rb
actioncable-6.1.4.7 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.2.2 lib/action_cable/subscription_adapter/base.rb
actioncable-6.1.4.6 lib/action_cable/subscription_adapter/base.rb
actioncable-6.1.4.5 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.2.1 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.2 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.1 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.0 lib/action_cable/subscription_adapter/base.rb
actioncable-6.1.4.4 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.0.rc3 lib/action_cable/subscription_adapter/base.rb
actioncable-6.1.4.3 lib/action_cable/subscription_adapter/base.rb
actioncable-6.1.4.2 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.0.rc2 lib/action_cable/subscription_adapter/base.rb
actioncable-7.0.0.rc1 lib/action_cable/subscription_adapter/base.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/actioncable-6.1.4.1/lib/action_cable/subscription_adapter/base.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/actioncable-6.1.4.1/lib/action_cable/subscription_adapter/base.rb