Skip to Content Skip to Search

class ActionCable::SubscriptionAdapter::Base

Attributes

[R] logger
[R] server

Public class methods

Source code GitHub
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 10
def initialize(server)
  @server = server
  @logger = @server.logger
end

Public instance methods

Source code GitHub
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 15
def broadcast(channel, payload)
  raise NotImplementedError
end
Source code GitHub
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 31
def identifier
  @server.config.cable[:id] ||= "ActionCable-PID-#{$$}"
end
Source code GitHub
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 27
def shutdown
  raise NotImplementedError
end
Source code GitHub
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 19
def subscribe(channel, message_callback, success_callback = nil)
  raise NotImplementedError
end
Source code GitHub
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 23
def unsubscribe(channel, message_callback)
  raise NotImplementedError
end

Definition files