From 36cce4f9690be9a9c038553e4ccbe078faeabd59 Mon Sep 17 00:00:00 2001 From: Erik Date: Sat, 27 May 2017 11:46:10 -0400 Subject: [PATCH] Remove more doubleEncode stuff --- Source/SocketEngine.swift | 6 ------ Source/SocketEngineSpec.swift | 4 ---- 2 files changed, 10 deletions(-) diff --git a/Source/SocketEngine.swift b/Source/SocketEngine.swift index 7f561bb..5c1f841 100644 --- a/Source/SocketEngine.swift +++ b/Source/SocketEngine.swift @@ -66,10 +66,6 @@ public final class SocketEngine : NSObject, URLSessionDelegate, SocketEnginePoll /// An array of HTTPCookies that are sent during the connection. public private(set) var cookies: [HTTPCookie]? - /// Set to `true` if using the node.js version of socket.io. The node.js version of socket.io - /// handles utf8 incorrectly. - public private(set) var doubleEncodeUTF8 = true - /// A dictionary of extra http headers that will be set during connection. public private(set) var extraHeaders: [String: String]? @@ -153,8 +149,6 @@ public final class SocketEngine : NSObject, URLSessionDelegate, SocketEnginePoll connectParams = params case let .cookies(cookies): self.cookies = cookies - case let .doubleEncodeUTF8(encode): - doubleEncodeUTF8 = encode case let .extraHeaders(headers): extraHeaders = headers case let .sessionDelegate(delegate): diff --git a/Source/SocketEngineSpec.swift b/Source/SocketEngineSpec.swift index 07171ce..71c9dc1 100644 --- a/Source/SocketEngineSpec.swift +++ b/Source/SocketEngineSpec.swift @@ -39,10 +39,6 @@ import Foundation /// The connect parameters sent during a connect. var connectParams: [String: Any]? { get set } - /// Set to `true` if using the node.js version of socket.io. The node.js version of socket.io - /// handles utf8 incorrectly. - var doubleEncodeUTF8: Bool { get } - /// An array of HTTPCookies that are sent during the connection. var cookies: [HTTPCookie]? { get }