Methods
Attributes
[R] | logger | |
[R] | server |
Class Public methods
new(server)
📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 10
def initialize(server)
@server = server
@logger = @server.logger
end
🔎 See on GitHub
Instance Public methods
broadcast(channel, payload)
📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 15
def broadcast(channel, payload)
raise NotImplementedError
end
🔎 See on GitHub
identifier()
📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 31
def identifier
@server.config.cable[:id] ||= "ActionCable-PID-#{$$}"
end
🔎 See on GitHub
shutdown()
📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 27
def shutdown
raise NotImplementedError
end
🔎 See on GitHub
subscribe(channel, message_callback, success_callback = nil)
📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 19
def subscribe(channel, message_callback, success_callback = nil)
raise NotImplementedError
end
🔎 See on GitHub
unsubscribe(channel, message_callback)
📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 23
def unsubscribe(channel, message_callback)
raise NotImplementedError
end
🔎 See on GitHub