Improve Live Query Monitoring (#5927)

* Improve Live Query Monitoring

* typo
This commit is contained in:
Diamond Lewis
2019-08-16 13:38:24 -05:00
committed by Antonio Davi Macedo Coelho de Castro
parent cea1988ce9
commit 3ab9dcdfd0
5 changed files with 37 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ class Client {
id: number;
parseWebSocket: any;
hasMasterKey: boolean;
sessionToken: string;
userId: string;
roles: Array<string>;
subscriptionInfos: Object;
@@ -27,10 +28,16 @@ class Client {
pushDelete: Function;
pushLeave: Function;
constructor(id: number, parseWebSocket: any, hasMasterKey: boolean) {
constructor(
id: number,
parseWebSocket: any,
hasMasterKey: boolean = false,
sessionToken: string
) {
this.id = id;
this.parseWebSocket = parseWebSocket;
this.hasMasterKey = hasMasterKey;
this.sessionToken = sessionToken;
this.roles = [];
this.subscriptionInfos = new Map();
this.pushConnect = this._pushEvent('connected');