Swift-ActionCableClient icon indicating copy to clipboard operation
Swift-ActionCableClient copied to clipboard

disconnected and reconnect

Open chakery opened this issue 7 years ago • 0 comments

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?

chakery avatar May 10 '18 03:05 chakery