跳至内容 跳至搜索
方法
B
I
N
S
U

属性

[R] logger
[R] server

类公共方法

new(server)

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

实例公共方法

broadcast(channel, payload)

# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 15
def broadcast(channel, payload)
  raise NotImplementedError
end

identifier()

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

shutdown()

# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 27
def shutdown
  raise NotImplementedError
end

subscribe(channel, message_callback, success_callback = nil)

# 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)

# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 23
def unsubscribe(channel, message_callback)
  raise NotImplementedError
end