CHNAGE: added size comparism
This commit is contained in:
@@ -56,6 +56,12 @@ export class MQTTEntity implements iMQTTEntityBase {
|
||||
}
|
||||
return jsonObject;
|
||||
}
|
||||
|
||||
get size(): number {
|
||||
this._size = JSON.stringify(this.toJSON()).length;
|
||||
return this._size;
|
||||
}
|
||||
|
||||
getProperty(name: string): any {
|
||||
if (!this.attrs.has(name)) return;
|
||||
return this[name as keyof this];
|
||||
|
||||
Reference in New Issue
Block a user