方法
- B
- I
- N
- S
- U
属性
[R] | logger | |
[R] | server |
类公共方法
new(server) 链接
来源: 显示 | 在 GitHub 上
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 10 def initialize(server) @server = server @logger = @server.logger end
实例公共方法
broadcast(channel, payload) 链接
来源: 显示 | 在 GitHub 上
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 15 def broadcast(channel, payload) raise NotImplementedError end
identifier() 链接
来源: 显示 | 在 GitHub 上
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 31 def identifier @server.config.cable[:id] ||= "ActionCable-PID-#{$$}" end
shutdown() 链接
来源: 显示 | 在 GitHub 上
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 27 def shutdown raise NotImplementedError end
subscribe(channel, message_callback, success_callback = nil) 链接
来源: 显示 | 在 GitHub 上
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 19 def subscribe(channel, message_callback, success_callback = nil) raise NotImplementedError end
unsubscribe(channel, message_callback) 链接
来源: 显示 | 在 GitHub 上
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 23 def unsubscribe(channel, message_callback) raise NotImplementedError end