Skip to content

Commit

Permalink
Added timestamp to intercepted redux state
Browse files Browse the repository at this point in the history
  • Loading branch information
RNEvok committed Jan 27, 2024
1 parent 2b02a9b commit 9b127eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export class Connector {
clearTimeout(this._sendReduxStateBatchingTimer);

this._sendReduxStateBatchingTimer = setTimeout(() => {
const encryptedData = this._encryptData({state: this._currentReduxStateCopy});
const encryptedData = this._encryptData({state: this._currentReduxStateCopy, timestamp: moment().valueOf()});
encryptedData.ok && this._socket.emit(SOCKET_EVENTS_EMIT.SAVE_REDUX_STATE_COPY, encryptedData.result);
}, batchingTimeMs);
}
Expand Down

0 comments on commit 9b127eb

Please sign in to comment.