Can we do Live Query on the browser?


I tried to use Live Query in the browser but I’ve had no success. I can connect to my live query server but can not subscribe due to below error:

subscription.on is not a function

const query = new Parse.Query('Game');
const subscription = query.subscribe();
(Parse as any).LiveQuery.on('open', (error) => {
  console.log('socket connection established');
//no working
subscription.on('create', (object) => {

Can you please double check if you are requiring Parse package for browser and not for node? It should be something like this:

var Parse = require('parse'); // For node would be parse/node

Can you please also share the SDK version you are using and the lines of code in which you initialize Parse and the Parse Live Query SDK?