-
-
Notifications
You must be signed in to change notification settings - Fork 596
LiveQuery not sending events #444
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
Comments
Have you tried to put constraints on the query? My experience is not all constraints are supported, I had an inner query which didn't work. |
So I followed the steps and created 2 Heroku Apps, one for the Parse Server and another for the LiveQuery Server following the schema for scalability. It subscribed to the query (Using Swift Client) but the events handler wasn't being called when I changed or created the object. So i tried initializing the LiveQuery Server on the Parse Server, now it works but I'm not sure which Heroku App is running the LiveQuery processes. This is how I configured them: Parse Server (Heroku App 1):
LiveQuery Server (Heroku App 2):
**Client (Swift): **
In the logs, the LiveQuery Server shows the connection and it "works", but in the Parse Server logs it shows a process as well and the Redis Activity is double what it is supposed to be. Any help, comment is greatly appreciated!!! Thanks in advanced! |
Hi,
which confirms, that the connection is established. Appreciate any help! Also can anyone confirm, that the setup works with heroku ect.? |
@Receks Yes it works. What I meant is that I managed to set up the Livequery in the standard Parse Server (Used Parse Server example in heroku as well), but not in the scalable way suggested in the docs (creating 2 instances or apps in heroku, one for the parse server and another for the livequery server). I was using Swift client but it should word as well with the ParseJS SDK, if you elaborate on your code maybe I can help you out on why is not getting the updates on the events. |
Alright, gladly. This ist my index.js:
And here the relevant client code:
When starting I see this console outputs: But my assumption is, that it is a server side issue. According to this: https://github.com/parse-community/parse-server/wiki/Parse-LiveQuery-Protocol-Specification I would expect a "create Event" in the server logs (as soon as a ChatMessage is created), but which I is not there. The subscribe Events are shown in the server logs. @Ernesto89 are you still using Parse JS SDK v1.9.2? Maybe this is an issue with the newest parse server Version. |
Probably fixed by this : Parse Server Role Limitation |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@Receks I know it's been a while but curiouis if you were ever able to solve this? Currently running into the same issue. No create event by the main app so nothing over the redis wire to the LQ server. |
@rsmets Can you open a separate issue and fill out the template? |
Aloha!
i use LiveQuery in Parse JS SDK v1.9.2
LiveQueryServer running, but does not trigger LiveQuery event.
event 'create', 'update' and other does't work
example code
Log on server
server index.js setting
Environment Setup
Server
parse-server version: 2.4.2
Database
MongoDB version: 3.2.13
The text was updated successfully, but these errors were encountered: