We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cfdda77 + 601a402 commit da37c22Copy full SHA for da37c22
AmplifyPlugins/Predictions/AWSPredictionsPlugin/Liveness/Service/FaceLivenessSession.swift
@@ -210,6 +210,10 @@ public final class FaceLivenessSession: LivenessService {
210
connectingState == .normal,
211
let savedURLForReconnect,
212
let serverDate else {
213
+ if let runtimeError = URLSessionWebSocketTask.CloseCode(rawValue: 4_005) {
214
+ Amplify.log.verbose("\(#function): Closing websocket with runtime error")
215
+ closeSocket(with: runtimeError)
216
+ }
217
onServiceException(.init(event: exceptionEvent))
218
return .stopAndInvalidateSession
219
}
0 commit comments