Skip to content

Commit 07f2ca5

Browse files
committed
rename engine init
1 parent c364f6a commit 07f2ca5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Source/SocketEngine.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ public final class SocketEngine : NSObject, NSURLSessionDelegate, SocketEnginePo
8080
private var selfSigned = false
8181
private var voipEnabled = false
8282

83-
public init(client: SocketEngineClient, url: NSURL, options: SocketIOClientConfiguration) {
83+
public init(client: SocketEngineClient, url: NSURL, config: SocketIOClientConfiguration) {
8484
self.client = client
8585
self.url = url
8686

87-
for option in options {
87+
for option in config {
8888
switch option {
8989
case let .ConnectParams(params):
9090
connectParams = params
@@ -127,7 +127,7 @@ public final class SocketEngine : NSObject, NSURLSessionDelegate, SocketEnginePo
127127
}
128128

129129
public convenience init(client: SocketEngineClient, url: NSURL, options: NSDictionary?) {
130-
self.init(client: client, url: url, options: options?.toSocketConfiguration() ?? [])
130+
self.init(client: client, url: url, config: options?.toSocketConfiguration() ?? [])
131131
}
132132

133133
deinit {

Source/SocketIOClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public final class SocketIOClient : NSObject, SocketEngineClient, SocketParsable
118118
private func addEngine() -> SocketEngineSpec {
119119
DefaultSocketLogger.Logger.log("Adding engine", type: logType)
120120

121-
engine = SocketEngine(client: self, url: socketURL, options: config)
121+
engine = SocketEngine(client: self, url: socketURL, config: config)
122122

123123
return engine!
124124
}

0 commit comments

Comments
 (0)