From 7007c57acb6ee6a2476378d8ced0d5772f2e4280 Mon Sep 17 00:00:00 2001 From: Joe Szymanski Date: Wed, 18 Oct 2017 08:33:30 -0400 Subject: [PATCH] Make sure the live query server URL properly handle wss schemes --- Sources/ParseLiveQuery/Client.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ParseLiveQuery/Client.swift b/Sources/ParseLiveQuery/Client.swift index 370ba277..1f5fc707 100644 --- a/Sources/ParseLiveQuery/Client.swift +++ b/Sources/ParseLiveQuery/Client.swift @@ -51,7 +51,7 @@ open class Client: NSObject { fatalError("Server should be a valid URL.") } var components = cmpts - components.scheme = components.scheme == "https" ? "wss" : "ws" + components.scheme = (components.scheme == "https" || components.scheme == "wss") ? "wss" : "ws" // Simple incrementing generator - can't use ++, that operator is deprecated! var currentRequestId = 0