Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Commit 8d7d704

Browse files
JoeSzymanskiflovilmart
authored andcommitted
Make sure the live query server URL properly handle wss schemes (#135)
1 parent 71cfa0a commit 8d7d704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ParseLiveQuery/Client.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ open class Client: NSObject {
5252
fatalError("Server should be a valid URL.")
5353
}
5454
var components = cmpts
55-
components.scheme = components.scheme == "https" ? "wss" : "ws"
55+
components.scheme = (components.scheme == "https" || components.scheme == "wss") ? "wss" : "ws"
5656

5757
// Simple incrementing generator - can't use ++, that operator is deprecated!
5858
var currentRequestId = 0

0 commit comments

Comments
 (0)