Module: Hibiki::Rails::Broadcasts
- Defined in:
- lib/hibiki/rails/broadcasts.rb
Overview
Rendering helpers for effects: thin wrappers over Turbo::StreamsChannel bound to the channel's #stream_name, so a render effect reads as
Hibiki::Effect.new do
broadcast_replace target: "count", partial: "counter/count",
locals: { count: @count.value }
end
All private — a public helper would become a client-invocable action (see the NOTE on Hibiki::Rails::Channel).