set the right URL in websocket creation

This commit is contained in:
Hugo Schouman 2018-09-05 19:26:35 +02:00
parent cfa6a217be
commit 867db19bc5

View File

@ -281,7 +281,7 @@ open class SocketEngine : NSObject, URLSessionDelegate, SocketEnginePollable, So
private func createWebSocketAndConnect() {
var req = URLRequest(url: urlWebSocketWithSid)
addHeaders(to: &req, includingCookies: session?.configuration.httpCookieStorage?.cookies(for: urlWebSocketWithSid))
addHeaders(to: &req, includingCookies: session?.configuration.httpCookieStorage?.cookies(for: urlPollingWithSid))
ws = WebSocket(request: req)
ws?.callbackQueue = engineQueue