going to remove close()

This commit is contained in:
Erik 2016-01-16 19:51:21 -05:00
parent 67f47ad6fe
commit 88b1eb1948

View File

@ -125,16 +125,9 @@ public final class SocketIOClient: NSObject, SocketEngineClient, SocketParsable
reconnectTimer = nil
}
/**
Closes the socket. Only reopen the same socket if you know what you're doing.
Will turn off automatic reconnects.
Pass true to fast if you're closing from a background task
*/
@available(*, deprecated=6.0)
public func close() {
DefaultSocketLogger.Logger.log("Closing socket", type: logType)
reconnects = false
didDisconnect("Closed")
disconnect()
}
/**
@ -228,10 +221,14 @@ public final class SocketIOClient: NSObject, SocketEngineClient, SocketParsable
}
/**
Same as close
Closes the socket. Only reopen the same socket if you know what you're doing.
Will turn off automatic reconnects.
*/
public func disconnect() {
close()
DefaultSocketLogger.Logger.log("Closing socket", type: logType)
reconnects = false
didDisconnect("Closed")
}
/**