Skip to content

Possible to detect Action Cable disconnections when using turbo_stream_from? #674

Open
@searls

Description

@searls

I'm using the turbo_stream_from helper to subscribe to Action Cable on a page that receives Turbo Stream broadcasts. One major issue, though, is that I have no idea when broadcasts aren't being received. I'd (ideally) like to be notified when they are with a JavaScript event, but I'd even be happy with a way to introspect the Cable connection, either via the Turbo or the Action Cable JS libraries.

Is this possible, or would I have to roll my own cable subscription outside Turbo to be able to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions