Skip to content

Commit

Permalink
fix(mercury): add client timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisadubois committed Nov 19, 2024
1 parent d5445fe commit abf5283
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/@webex/internal-plugin-mercury/src/mercury.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ const Mercury = WebexPlugin.extend({
attemptWSUrl = webSocketUrl;

let options = {
clientTimestamp: Date.now(),
forceCloseDelay: this.config.forceCloseDelay,
pingInterval: this.config.pingInterval,
pongTimeout: this.config.pongTimeout,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ describe('plugin-mercury', () => {
assert.calledWith(
Socket.prototype.open,
sinon.match(/ws:\/\/providedurl.com/),
sinon.match.any
sinon.match.has('clientTimestamp', clock.now + 2) // 2 for 2 ticks
);
});
});
Expand Down

0 comments on commit abf5283

Please sign in to comment.