-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invocationDidComplete not being called after network is disconnected #226
Comments
Are you saying the completionHandler is not invoked at all or it does but the error is nil? |
Not at all. Let me know if you need any specifics other than the logs |
Thanks for confirming. This might be a tough one - the completion handler is passed to the webSocket task verbatim and if the task does not call the completion handler I have no control over it. I will need to dig a little bit to see if I can reproduce and if there is some configuration I might have missed. One more question - how do you disable network? Do you disconnect from WiFi in settings in the simulator? |
On iPad, I disable wifi. On sim you would need to disconnect the laptop from wifi |
Note to self:
Possibly, @MaxBG92: would you be able to test if using |
Hello, sorry for the delay. Tried it but getting the same result |
Thanks for confirming! |
This thread could be useful: https://developer.apple.com/forums/thread/678384 |
Added additional logging in 06772b8. My hypothesis is that maybe the callback was invoked but the error was SignalR-Client-Swift/Sources/SignalRClient/WebsocketsTransport.swift Lines 96 to 100 in 06772b8
|
Hello
Having trouble with invocations after the networks is disconnected. My expectation is that
invocationDidComplete
should be called with an error but it never does.The text was updated successfully, but these errors were encountered: