module Turbo::Broadcastable
def broadcast_action_to(*streamables, action:, target: broadcast_target_default, **rendering)
# to the stream named "identity:2:clearances"
# Sends
My Clearance
Broadcast a named action, allowing for dynamic dispatch, instead of using the concrete action methods. Examples:
def broadcast_action_to(*streamables, action:, target: broadcast_target_default, **rendering) Turbo::StreamsChannel.broadcast_action_to(*streamables, action: action, target: target, **broadcast_rendering_with_defaults(rendering)) end