Reputation: 35
In irb ;
server = ActionCable::Server::Base.new
server.broadcast "channel", message
This all works as I would expect it to, sends a message. I am confused as to why it actually works at all. From what I am understanding, ActionCable::Server::Base
includes ActionCable::Server::Broadcasting
module which basically allows access to the nested class Broadcasting and from there we basically send a request to the worker pool via pubsub to run the broadcast from the available worker pool which just again schedules another worker?
Upvotes: 0
Views: 57