We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdca91d commit 481a4f9Copy full SHA for 481a4f9
js/lib/publisher.js
@@ -22,7 +22,7 @@ async function publisherRoutine(
22
while (isRunningRef.value) {
23
let msg = payload;
24
if (measureRTT) {
25
- msg = process.hrtime.bigint() / 1000;
+ msg = process.hrtime.bigint() / 1000n;
26
}
27
28
for (const channel of channels) {
js/lib/subscriber.js
@@ -70,7 +70,7 @@ async function subscriberRoutine(
70
71
72
try {
73
- const now = process.hrtime.bigint() / 1000;
+ const now = process.hrtime.bigint() / 1000n;
74
const timestamp = BigInt(message); // µs
75
const rtt = now - timestamp;
76
0 commit comments