Even more linux fiddling

This commit is contained in:
Erik Little 2017-09-17 10:45:15 -04:00
parent 26af5a6296
commit d0420bc3c6
No known key found for this signature in database
GPG Key ID: 4930B7C5FBC1A69D
2 changed files with 4 additions and 1 deletions

View File

@ -136,6 +136,7 @@ open class SocketIOClient : NSObject, SocketIOClientSpec, SocketEngineClient, So
super.init()
}
#if !os(Linux)
/// Not so type safe way to create a SocketIOClient, meant for Objective-C compatiblity.
/// If using Swift it's recommended to use `init(socketURL: NSURL, options: Set<SocketIOClientOption>)`
///
@ -144,6 +145,7 @@ open class SocketIOClient : NSObject, SocketIOClientSpec, SocketEngineClient, So
public convenience init(socketURL: NSURL, config: NSDictionary?) {
self.init(socketURL: socketURL as URL, config: config?.toSocketConfiguration() ?? [])
}
#endif
deinit {
DefaultSocketLogger.Logger.log("Client is being released", type: SocketIOClient.logType)

View File

@ -161,7 +161,8 @@ extension SocketEngineWebsocket {
}
#if os(Linux)
protocol WebSocketDelegate { }
/// Does nothing on Linux.
public protocol WebSocketDelegate { }
/// SSLSecurity does nothing on Linux.
public final class SSLSecurity { }