Open haci-xplora opened 1 year ago
it should be number instead of Date as we are storing Date.now() when a heartbeat message is received:
number
Date
Date.now()
https://github.com/moscajs/aedes/blob/main/aedes.js#L149
file to be fixed: types/instance.d.ts
types/instance.d.ts
type LastHearthbeatTimestamp = Date; // <-- must be number export interface Brokers { [brokerId: string]: LastHearthbeatTimestamp; }
PR?
it should be
number
instead ofDate
as we are storingDate.now()
when a heartbeat message is received:https://github.com/moscajs/aedes/blob/main/aedes.js#L149
file to be fixed:
types/instance.d.ts