Skip to content
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

disconnected and reconnect #46

Open
chakery opened this issue May 10, 2018 · 0 comments
Open

disconnected and reconnect #46

chakery opened this issue May 10, 2018 · 0 comments

Comments

@chakery
Copy link

chakery commented May 10, 2018

let client = ActionCableClient(URL: NSURL(string: "ws://localhost:3000/cable")!)
client.onDisconnected = { [weak self] error in
    print(error)
}

when I got the below error message on Disconnected callback, that client don't reconnect.

ActionCableClient.ConnectionError.unknownDomain(Error Domain=WebSocket Code=2 "write wait timed out" UserInfo={NSLocalizedDescription=write wait timed out})

how should I make it reconnect?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant