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

Commit ffed63f

Browse files
vstepanyuknlutsenko
authored andcommitted
Use wss schema if api uses https
1 parent ad1a14e commit ffed63f

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
@@ -50,7 +50,7 @@ public class Client: NSObject {
5050
guard let components = NSURLComponents(string: server) else {
5151
fatalError("Server should be a valid URL.")
5252
}
53-
components.scheme = "ws"
53+
components.scheme = components.scheme == "https" ? "wss" : "ws"
5454
components.path = "/LQ"
5555

5656
// Simple incrementing generator - can't use ++, that operator is deprecated!

0 commit comments

Comments
 (0)