Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpatrick committed Jan 21, 2024
1 parent 776ce8d commit 8fd5611
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/util/ping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ export const ping = (host: string): Promise<number> => {

const start = Date.now();
socket.send('ping');
console.log('ping');

socket.onmessage = (event) => {
if (event.data === 'pong') {
const latency = Date.now() - start;
console.log(`pong: ${latency} ms`);
latencies.push(latency);

if (pings >= 3) {
Expand Down

0 comments on commit 8fd5611

Please sign in to comment.