Skip to content

Add a way to get info about the websocket connexion status #4652

Open
@benoitletondor

Description

@benoitletondor

Use case

We are building a messaging SDK on top of Apollo and we would like to expose a state of the websocket connexion so that we can display in the UI when we are offline. This would be useful to let the user know that they won't receive messages live until they have network again.

Describe the solution you'd like

Right now the only solution I found is to implement my own WebSocketEngine and provide it to Apollo. But I ended up copy/pasting basically all the code from OkHttpWebSocketEngine and it's not really futureproof.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions