@crypticat/core
Advanced tools
Comparing version 0.2.10 to 0.2.11
@@ -55,3 +55,3 @@ "use strict"; | ||
const pongCheckInterval = setInterval(() => { | ||
if (lastPong > 5000) | ||
if (Date.now() - lastPong > 5000) | ||
ws.close(); | ||
@@ -173,2 +173,6 @@ }, 5000); | ||
} | ||
case 'PONG': { | ||
lastPong = Date.now(); | ||
return; | ||
} | ||
} | ||
@@ -175,0 +179,0 @@ })); |
{ | ||
"name": "@crypticat/core", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"description": "Crypticat's core client and server implementation", | ||
@@ -5,0 +5,0 @@ "author": "Kognise <felix.mattick@gmail.com>", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40909
502