Remove from manager can be discarded
This commit is contained in:
parent
f10839b832
commit
2e492ee9bc
@ -78,6 +78,7 @@ open class SocketClientManager : NSObject {
|
|||||||
///
|
///
|
||||||
/// - parameter withLabel: The label of the socket to remove.
|
/// - parameter withLabel: The label of the socket to remove.
|
||||||
/// - returns: The socket for the given label, if one was present.
|
/// - returns: The socket for the given label, if one was present.
|
||||||
|
@discardableResult
|
||||||
open func removeSocket(withLabel label: String) -> SocketIOClient? {
|
open func removeSocket(withLabel label: String) -> SocketIOClient? {
|
||||||
return sockets.removeValue(forKey: label)
|
return sockets.removeValue(forKey: label)
|
||||||
}
|
}
|
||||||
@ -86,6 +87,7 @@ open class SocketClientManager : NSObject {
|
|||||||
///
|
///
|
||||||
/// - parameter socket: The socket to remove.
|
/// - parameter socket: The socket to remove.
|
||||||
/// - returns: The socket if it was in the manager.
|
/// - returns: The socket if it was in the manager.
|
||||||
|
@discardableResult
|
||||||
open func removeSocket(_ socket: SocketIOClient) -> SocketIOClient? {
|
open func removeSocket(_ socket: SocketIOClient) -> SocketIOClient? {
|
||||||
var returnSocket: SocketIOClient?
|
var returnSocket: SocketIOClient?
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user