Sha256: 6379663a29957ecc17c699a25208ff1011b9829b58a0a281fdb3af4149d88734

Contents?: true

Size: 791 Bytes

Versions: 3

Compression:

Stored size: 791 Bytes

Contents

# frozen_string_literal: true

# :markup: markdown

module ActionCable
  module SubscriptionAdapter
    class Base
      private attr_reader :executor
      private attr_reader :config

      delegate :logger, to: :config

      def initialize(server)
        @executor = server.executor
        @config = server.config
      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
        config.cable[:id] ||= "ActionCable-PID-#{$$}"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
actioncable-next-0.1.2 lib/action_cable/subscription_adapter/base.rb
actioncable-next-0.1.1 lib/action_cable/subscription_adapter/base.rb
actioncable-next-0.1.0 lib/action_cable/subscription_adapter/base.rb