MCPcopy Index your code
hub / github.com/parse-community/parse-server / constructor

Method constructor

src/LiveQuery/Client.js:26–48  ·  view source on GitHub ↗
(
    id: number,
    parseWebSocket: any,
    hasMasterKey: boolean = false,
    sessionToken: string,
    installationId: string
  )

Source from the content-addressed store, hash-verified

24 pushLeave: Function;
25
26 constructor(
27 id: number,
28 parseWebSocket: any,
29 hasMasterKey: boolean = false,
30 sessionToken: string,
31 installationId: string
32 ) {
33 this.id = id;
34 this.parseWebSocket = parseWebSocket;
35 this.hasMasterKey = hasMasterKey;
36 this.sessionToken = sessionToken;
37 this.installationId = installationId;
38 this.roles = [];
39 this.subscriptionInfos = new Map();
40 this.pushConnect = this._pushEvent('connected');
41 this.pushSubscribe = this._pushEvent('subscribed');
42 this.pushUnsubscribe = this._pushEvent('unsubscribed');
43 this.pushCreate = this._pushEvent('create');
44 this.pushEnter = this._pushEvent('enter');
45 this.pushUpdate = this._pushEvent('update');
46 this.pushDelete = this._pushEvent('delete');
47 this.pushLeave = this._pushEvent('leave');
48 }
49
50 static pushResponse(parseWebSocket: any, message: Message): void {
51 logger.verbose('Push Response : %j', message);

Callers

nothing calls this directly

Calls 1

_pushEventMethod · 0.95

Tested by

no test coverage detected