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