File tree 1 file changed +2
-2
lines changed
packages/engine.io-client/lib
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -630,7 +630,7 @@ export class SocketWithoutUpgrade extends Emitter<
630
630
private _resetPingTimeout ( ) {
631
631
this . clearTimeoutFn ( this . _pingTimeoutTimer ) ;
632
632
const delay = this . _pingInterval + this . _pingTimeout
633
- this . _pingTimeoutTime = performance . now ( ) + delay
633
+ this . _pingTimeoutTime = Date . now ( ) + delay
634
634
this . _pingTimeoutTimer = this . setTimeoutFn ( ( ) => {
635
635
this . _onClose ( "ping timeout" ) ;
636
636
} , delay ) ;
@@ -722,7 +722,7 @@ export class SocketWithoutUpgrade extends Emitter<
722
722
return
723
723
}
724
724
725
- const expired = performance . now ( ) >= this . _pingTimeoutTime
725
+ const expired = Date . now ( ) >= this . _pingTimeoutTime
726
726
if ( expired ) {
727
727
debug ( "`checkHeartbeat` detected missed ping so closing connection" ) ;
728
728
this . _onClose ( "ping timeout" ) ;
You can’t perform that action at this time.
0 commit comments