Improve Live Query Monitoring (#5927)
* Improve Live Query Monitoring * typo
This commit is contained in:
committed by
Antonio Davi Macedo Coelho de Castro
parent
cea1988ce9
commit
3ab9dcdfd0
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user