Skip to content

Parse LiveQuery with json config file #2196

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

Closed
gilthonweapps opened this issue Jul 3, 2016 · 3 comments
Closed

Parse LiveQuery with json config file #2196

gilthonweapps opened this issue Jul 3, 2016 · 3 comments
Labels
type:feature New feature or improvement of existing feature

Comments

@gilthonweapps
Copy link

Hi,

So far, I have been using Parse Server with a JSON config file and PM2. Everything is running fine.
Now, I would like to activate LiveQuery for my server.
Here is a portion of my config file:

{
"serverURL": "http://localhost:1337/",
"mountPath": "/parse",
"databaseURI": "mongodb://localhost:27017/db",
"appId": "APPID",
"masterKey": "MASTERKEY",
"enableAnonymousUsers": true,
"allowClientClassCreation": false,
"verifyUserEmails": false,
"verbose": true,
"maxUploadSize": "100mb",
"liveQuery": {
"classNames": ["Class1", "Class2"]
}
}

So, I have said to the server that my classes Class1 and Class2 are working with LiveQuery.
However, when I see in the wiki, I need to do

var parseLiveQueryServer = ParseServer.createLiveQueryServer(httpServer);

But as I only use a JSON config file to setup and start my server, how can I activate LiveQuery?

Thanks

@flovilmart
Copy link
Contributor

Thanks for reporting it, this should be added to the CLI.

@gilthonweapps
Copy link
Author

Thanks. Looking forward to it :) 👍

@flovilmart
Copy link
Contributor

@gilthonweapps you can implement it, that should be pretty straightforward in here

@mtrezza mtrezza added type:feature New feature or improvement of existing feature and removed type:improvement labels Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or improvement of existing feature
Projects
None yet
Development

No branches or pull requests

3 participants