Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
network: better timeout types
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-sokolov committed Mar 2, 2021
1 parent 1eab977 commit 23f14f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/network/websockets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export function makeWsProtocolAdapter(
const serialization = params.serialization || jsonSerialization;
const socket = _socket || new ReconnectingWebSocket(url);

let pingTimer: NodeJS.Timer;
let timeoutTimer: NodeJS.Timer;
let pingTimer: ReturnType<typeof setTimeout>;
let timeoutTimer: ReturnType<typeof setTimeout>;
function restartPingMachine() {
clearTimeout(pingTimer);
clearTimeout(timeoutTimer);
Expand Down

0 comments on commit 23f14f3

Please sign in to comment.