-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.3.1 mitigate new websocket behavior found in iOS 16.4 [MTSDK-183] (#…
…174) * Mitigating new socket behavior seen in iOS 16.4 [MTSDK-183] In iOS 16.4, when the network becomes unavailable, such as when the device is put into airplane mode, the NSURLSessionWebSocketTask now immediately completes with an error. This happens without the socket closing first. Furthermore, the completion handler for sendPingWithPongReceiveHandler happens on something other than the main thread. To mitigate, we can listen for the socket task completion as well as ensure that our external facing listeners from the SDK are dispatched on Main. * fix: check websocket task state before send ping revert: revert wrapping of listeners and attempting to dispatch back to main thread revert: revert adding listener to websocket task to check for unexpected task completion. allow keepAlive engine to handle it. * MTSDK-183 Hotfix - Update transport version to `2.3.1` --------- Co-authored-by: aafanasi <Anton.Afanasiev@genesys.com>
- Loading branch information
1 parent
675cf66
commit e6d50b4
Showing
5 changed files
with
38 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters