Module: TurboReady::Patches::Broadcasts
- Includes:
- TagHelper
- Defined in:
- lib/turbo_ready/patches/broadcasts.rb
Overview
Patch for Turbo::Streams::Broadcasts which is mixed into Turbo::StreamsChannel SEE: github.com/hotwired/turbo-rails/blob/main/app/channels/turbo/streams/broadcasts.rb
Instance Method Summary collapse
- #broadcast_invoke_later_to(*streamables, method, **kwargs) ⇒ Object
- #broadcast_invoke_to(*streamables, method, **kwargs) ⇒ Object
Methods included from TagHelper
Instance Method Details
#broadcast_invoke_later_to(*streamables, method, **kwargs) ⇒ Object
15 16 17 |
# File 'lib/turbo_ready/patches/broadcasts.rb', line 15 def broadcast_invoke_later_to(*streamables, method, **kwargs) TurboReady::BroadcastInvokeJob.perform_later(*streamables, method, **kwargs) end |
#broadcast_invoke_to(*streamables, method, **kwargs) ⇒ Object
11 12 13 |
# File 'lib/turbo_ready/patches/broadcasts.rb', line 11 def broadcast_invoke_to(*streamables, method, **kwargs) broadcast_stream_to(*streamables, content: turbo_stream_invoke_tag(method, **kwargs)) end |