Skip to content

Commit 5060f90

Browse files
committed
we need to update the urls if connectparams changes
1 parent 57670ec commit 5060f90

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Source/SocketEngine.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ public final class SocketEngine: NSObject, SocketEnginePollable, SocketEngineWeb
2929
public let handleQueue = dispatch_queue_create("com.socketio.engineHandleQueue", DISPATCH_QUEUE_SERIAL)
3030
public let parseQueue = dispatch_queue_create("com.socketio.engineParseQueue", DISPATCH_QUEUE_SERIAL)
3131

32-
public var connectParams: [String: AnyObject]?
32+
public var connectParams: [String: AnyObject]? {
33+
didSet {
34+
(urlPolling, urlWebSocket) = createURLs()
35+
}
36+
}
3337
public var postWait = [String]()
3438
public var waitingForPoll = false
3539
public var waitingForPost = false

0 commit comments

Comments
 (0)