I’m trying to connect to Live Queries via Node JS.
I’m using the latest version of parse and I’ve installed via docker. In my docker I have the following environnement variables:
PARSE_SERVER_START_LIVE_QUERY_SERVER=1
PARSE_SERVER_LIVE_QUERY={“classNames”:[“testClass”,“xxxx”]}
Here is my js code :
const Parse = require('parse/node');
Parse.initialize(process.env.PARSE_APP_ID, "", process.env.PARSE_MASTER)
Parse.serverURL = "https://xxx.com/parse"
let query = new Parse.Query("testClass");
let subscription = await query.subscribe()
subscription.on('open', () => {
console.log('subscription opened');
});
Nothing happens/nothing shows in my console
Can anyone help me?