Even more linux fiddling
This commit is contained in:
parent
26af5a6296
commit
d0420bc3c6
@ -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)
|
||||
|
||||
@ -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 { }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user