Skip to content

Fix LiveQuery SSL #277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 12, 2016
Merged

Fix LiveQuery SSL #277

merged 2 commits into from
May 12, 2016

Conversation

cheesykyle
Copy link
Contributor

This allows LiveQueryServer to work over Parse Sever with SSL

@cheesykyle
Copy link
Contributor Author

This is the fix described in #271

@ghost ghost added the CLA Signed label May 12, 2016
// If we can not find Parse.liveQueryServerURL, we try to extract it from Parse.serverURL
if (!liveQueryServerURL) {
let host = CoreManager.get('SERVER_URL').replace(/^https?:\/\//, '');
liveQueryServerURL = 'ws://' + host;
var tempServerURL = CoreManager.get('SERVER_URL');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const

@andrewimm
Copy link
Contributor

Just a few style concerns: we're trying to use let/const on all new code.

@cheesykyle
Copy link
Contributor Author

cheesykyle commented May 12, 2016

var has updated with let/const

@andrewimm
Copy link
Contributor

Awesome. I'll see if I can cut a 1.8.5 branch to include this.

@andrewimm andrewimm merged commit 9126578 into parse-community:master May 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants