import type { EventEmitter } from 'events'; /** * We expose three events to help you monitor the status of the WebSocket connection: * *
Open - When we establish the WebSocket connection to the LiveQuery server, you'll get this event. * *
* Parse.LiveQuery.on('open', () => {
*
* });
*
* Close - When we lose the WebSocket connection to the LiveQuery server, you'll get this event. * *
* Parse.LiveQuery.on('close', () => {
*
* });
*
* Error - When some network error or LiveQuery server error happens, you'll get this event. * *
* Parse.LiveQuery.on('error', (error) => {
*
* });
*
* @class Parse.LiveQuery
* @static
*/
declare class LiveQuery {
emitter: EventEmitter;
on: EventEmitter['on'];
emit: EventEmitter['emit'];
constructor();
/**
* After open is called, the LiveQuery will try to send a connect request
* to the LiveQuery server.
*/
open(): Promise