@riocrypto/common 1.0.918 → 1.0.919

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@ interface Event {
5
5
  data: any;
6
6
  }
7
7
  export declare abstract class Listener<T extends Event> {
8
+ private listenerStartTime;
8
9
  abstract subject: T["subject"];
9
10
  abstract queueGroupName: string;
10
11
  abstract onMessage(data: T["data"], msg: Message): void;
@@ -5,6 +5,7 @@ class Listener {
5
5
  constructor(client) {
6
6
  this.ackWait = 5 * 1000;
7
7
  this.client = client;
8
+ this.listenerStartTime = new Date(); // Record the start time of the listener
8
9
  }
9
10
  subscriptionOptions() {
10
11
  return this.client
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.918",
3
+ "version": "1.0.919",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",