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

Commit

Permalink
Make sure the live query server URL properly handle wss schemes (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeSzymanski authored and flovilmart committed Dec 4, 2017
1 parent 71cfa0a commit 8d7d704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ParseLiveQuery/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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
Expand Down

0 comments on commit 8d7d704

Please sign in to comment.