going to remove close()
This commit is contained in:
parent
67f47ad6fe
commit
88b1eb1948
@ -125,16 +125,9 @@ public final class SocketIOClient: NSObject, SocketEngineClient, SocketParsable
|
|||||||
reconnectTimer = nil
|
reconnectTimer = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
@available(*, deprecated=6.0)
|
||||||
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
|
|
||||||
*/
|
|
||||||
public func close() {
|
public func close() {
|
||||||
DefaultSocketLogger.Logger.log("Closing socket", type: logType)
|
disconnect()
|
||||||
|
|
||||||
reconnects = false
|
|
||||||
didDisconnect("Closed")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -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() {
|
public func disconnect() {
|
||||||
close()
|
DefaultSocketLogger.Logger.log("Closing socket", type: logType)
|
||||||
|
|
||||||
|
reconnects = false
|
||||||
|
didDisconnect("Closed")
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user