-
Notifications
You must be signed in to change notification settings - Fork 855
Closed
Labels
Description
Getting after update to 5.0.0 (haven't upgraded a few months)
If set reconnects to "true" like this
let socket = SocketIOClient(socketURL: url,
options: ["log": true])
socket.reconnects = true
socket.reconnectWait = kReconnectionTimeoutwhen app gets [Time out] error (for example when you put app run on pause), app trying to reconnects and calls open method of SocketEngine
public func open(opts: [String: AnyObject]? = nil) {
connectParams = opts
if connected {
DefaultSocketLogger.Logger.error("Tried to open while connected", type: logType)
client?.didError("Tried to open engine while connected")
return
}
DefaultSocketLogger.Logger.log("Starting engine", type: logType)
DefaultSocketLogger.Logger.log("Handshaking", type: logType)
resetEngine()
...and it ends up because connected is true