ably / ably-js

Javascript, Node, Typescript, React, React Native client library SDK for Ably realtime messaging service
https://ably.com/download
Apache License 2.0
314 stars 55 forks source link

Add client option to set websocket as default persisted transport preference #1327

Open owenpearson opened 1 year ago

owenpearson commented 1 year ago

add a new option (something like ClientOptions.websocketsFirst) which makes the client try websockets first if there isn't already a persisted transport preference and persist comet as a transport preference if websocketsFirst is true and the library fails to connect with websocket.

┆Issue is synchronized with this Jira Task by Unito

sync-by-unito[bot] commented 1 year ago

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3629

VeskeR commented 4 months ago

in ably-js v2 in https://github.com/ably/ably-js/pull/1645 PR we decided to go with another approach: we removed XHRStreaming transport, and replaced upgrade mechanism with a websocket + base fallback transport mechanism whereby no two transports may be simultaneously connected.

@owenpearson Would you be happy to close this issue?