hotwired / turbo-rails

Use Turbo in your Ruby on Rails app
https://turbo.hotwired.dev
MIT License
2.09k stars 322 forks source link

how do I batch multiple turbo stream broadcasts? #640

Open kristoph opened 3 months ago

kristoph commented 3 months ago

I have several Turbo::StreamsChannel.broadcast_ calls in a series in a worker. How would I batch these ( or do I even need to )?

I tried including the Turbo::StreamHelper in my worker but I got an error related to formats.