Methods
B
N
Attributes
[R] broadcasting
[R] coder
[R] server
Class Public methods
new(server, broadcasting, coder:)
# File actioncable/lib/action_cable/server/broadcasting.rb, line 36
def initialize(server, broadcasting, coder))
  @server, @broadcasting, @coder = server, broadcasting, coder
end
Instance Public methods
broadcast(message)
# File actioncable/lib/action_cable/server/broadcasting.rb, line 40
def broadcast(message)
  server.logger.info "[ActionCable] Broadcasting to #{broadcasting}: #{message.inspect}"
  encoded = coder ? coder.encode(message) : message
  server.pubsub.broadcast broadcasting, encoded
end