method
broadcaster_for
rails latest stable - Class:
ActionCable::Server::Broadcasting
broadcaster_for(broadcasting, coder: ActiveSupport::JSON)public
Returns a broadcaster for a named broadcasting that can be reused. Useful when you have an object that may need multiple spots to transmit to a specific broadcasting over and over.