From 867db19bc5ee69ddff2beb88c8700fa2ce71aff2 Mon Sep 17 00:00:00 2001 From: Hugo Schouman Date: Wed, 5 Sep 2018 19:26:35 +0200 Subject: [PATCH] set the right URL in websocket creation --- Source/SocketIO/Engine/SocketEngine.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SocketIO/Engine/SocketEngine.swift b/Source/SocketIO/Engine/SocketEngine.swift index 52076c9..da0cbc0 100644 --- a/Source/SocketIO/Engine/SocketEngine.swift +++ b/Source/SocketIO/Engine/SocketEngine.swift @@ -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