ActionCable vs TurboStream
There are two ways that the server can talk to the client over Websocket:
- ActionCable transmits directly to the frontends javascript
- TurboStreams is a wrapper around ActionCable
- You always need a html part for communication by secured channels
- Makes sense when you want to transfer confidential data or separate onto privileged user channels
- Has compatibility issues with Rails-UJS