ably-js
ably-js copied to clipboard
Connection recovery not working
Ably ver: 2.3.1
Description Realtime connection (websocket, only websocket transport provided) is not restored after network connection is lost. SDK tries to connect without success (network is already available).
My observation
- When a network problem occurs,
checkWsConnectivity()is called, which of course fails (that's fine). checkWsConnectivity()can by called only once (WHY?) , sowsCheckResultis alwaysfalsehttps://github.com/ably/ably-js/blob/8ba8ec29f521b18ffd16bc4fcb33004c64a7d706/src/common/lib/transport/connectionmanager.ts#L1104tryTransportWithFallbacks()is called when trying to reconnectshouldContinue()intryTransportWithFallbacks()body always returnsfalse, which calltransport.dispose()