Skip to content

Support a longpoll transport fallback when WebSocket connections are blocked #87

Description

@joelbyler

I'm looking at a workflow where an Elixir Slipstream client runs on an edge device, on customer networks where WebSocket connections are sometimes blocked (proxies stripping Upgrade, etc.). The Phoenix JS client handles this with longPollFallbackMs — try WebSocket, silently fall back to the longpoll transport, same channel API either way — but nothing equivalent exists for non-JS clients today.

What are your thoughts on supporting something similar here? I can see two shapes: making the transport pluggable in Slipstream.Connection (a longpoll transport could then live in-tree or out), or keeping Slipstream WebSocket-only and blessing a companion library that wraps it with the fallback policy. Possibly related: #75 describes a hang on exactly the can't-establish-WebSocket case a fallback would address.

Happy to help contribute to the work if there's interest — wanted to gauge direction before writing code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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