Skip to Content Skip to Search

class ActionCable::SubscriptionAdapter::Base

Attributes

[R] logger
[R] server

Public class methods

new(server)

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

Public instance methods

broadcast(channel, payload)

Permalink
Source code GitHub
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 13
def broadcast(channel, payload)
  raise NotImplementedError
end

identifier()

Permalink
Source code GitHub
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 29
def identifier
  @server.config.cable[:id] ||= "ActionCable-PID-#{$$}"
end

shutdown()

Permalink
Source code GitHub
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 25
def shutdown
  raise NotImplementedError
end

subscribe(channel, message_callback, success_callback = nil)

Permalink
Source code GitHub
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 17
def subscribe(channel, message_callback, success_callback = nil)
  raise NotImplementedError
end

unsubscribe(channel, message_callback)

Permalink
Source code GitHub
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 21
def unsubscribe(channel, message_callback)
  raise NotImplementedError
end

Definition files