Skip to content

disconnected and reconnect #46

@chakery

Description

@chakery
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions