Recently there was an interesting issue and PR sent to turbo-rails questioning why when creating a model the broadcast is sent to that model's channel by default (when using the vanilla protected $broadcasts = true approach) because since the model was just created, no one is listening to that channel.
The change made was that, by default, we should broadcast to the model's plural channel instead. I'm not sure yet how to approach this here.
Suggestion: ensure broadcasting newly created models when using the vanilla protected $broadcasts = true approach is sent to a private channel using the model's pluralized base name.
Recently there was an interesting issue and PR sent to
turbo-rails
questioning why when creating a model the broadcast is sent to that model's channel by default (when using the vanillaprotected $broadcasts = true
approach) because since the model was just created, no one is listening to that channel.The change made was that, by default, we should broadcast to the model's plural channel instead. I'm not sure yet how to approach this here.
Suggestion: ensure broadcasting newly created models when using the vanilla
protected $broadcasts = true
approach is sent to a private channel using the model's pluralized base name.