Can we do Live Query on the browser?

#1

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

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

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
#3

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?