New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this.pingIntervalTimer.refresh is not a function #631
Comments
Which version of Node.js are you using? The |
Yes I saw that: https://nodejs.org/api/timers.html#timeoutrefresh |
And now I'm suddenly getting the type of |
Okay, I think I see what happened. When I wanted to console.log |
Were you able to find a solution? Is there something we can fix on our end? |
I think it would be best to explicitly import I can also make a PR for that tomorrow if you like. |
Here's the PR: #632 |
Closed by #632. |
Describe the bug
socket.js:108 Uncaught TypeError: this.pingIntervalTimer.refresh is not a function
at Socket.onPacket (socket.js:108)
To Reproduce
engine.io: 6.1.0
engine.io-client: 6.1.1
socket.io: 4.4.0
socket.io-client: 4.4.0
Platform:
Additional context
Adding
console.log(typeof this.pingIntervalTimer)
just before line 108 shows that it's a number, not a Timer.
this.pingIntervalTime.refresh()
was added here it seems:
37474c7
The text was updated successfully, but these errors were encountered: