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 8
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 13
def broadcast(channel, payload)
raise NotImplementedError
end
Source code GitHub
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 29
def identifier
@server.config.cable[:id] ||= "ActionCable-PID-#{$$}"
end
Source code GitHub
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 25
def shutdown
raise NotImplementedError
end
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
Source code GitHub
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 21
def unsubscribe(channel, message_callback)
raise NotImplementedError
end