We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've noticed that my completion handlers for proxy invoke calls get called twice. Here's a snippet from my code:
invoke
var counter = 0 proxy.invoke("groupdisconnect", withArgs: [roomId]) { [weak self] response, error in guard let wself = self else { return } counter += 1 wself.logger.log("leaveRoom - \(counter) res: \(response.debugDescription) err: \(error.debugDescription)") if counter == 2 { DispatchQueue.main.async { wself.logger.log("disconnecting from hub") wself.proxy = nil wself.hub?.disconnect() wself.hub = nil } } }
Here's the log lines from above:
2017-08-17 01:16:58.314 Nedbank[11425:126321] 23:16:58.314 WebSocketClient: leaveRoom - 1 res: nil err: nil 2017-08-17 01:16:58.858 Nedbank[11425:126321] 23:16:58.858 WebSocketClient: leaveRoom - 2 res: nil err: nil
So, is this normal? And why is res always nil?
res
The text was updated successfully, but these errors were encountered:
the same question with me
Sorry, something went wrong.
try to comment out lines from 78 to 80 in "SRWEBSocketTransport" file will fix it
No branches or pull requests
I've noticed that my completion handlers for proxy
invoke
calls get called twice. Here's a snippet from my code:Here's the log lines from above:
So, is this normal? And why is
res
always nil?The text was updated successfully, but these errors were encountered: