le0pard / cable-shared-worker

ActionCable and AnyCable Shared Worker support
MIT License
60 stars 4 forks source link

use of shared worked for turbo_stream_from #16

Closed acetinick closed 1 month ago

acetinick commented 1 month ago

I am looking to find a way that all streams created using turbo_stream_from in Turbo will also go through the shared worker? is this possible in some way?

le0pard commented 1 month ago

for this you need create something, which will integrated with turbo-cable-stream-source web component. This library not designed for this

https://github.com/hotwired/turbo-rails/blob/main/app/javascript/turbo/cable_stream_source_element.js