Replies: 1 comment 2 replies
-
Hi! For a io.on("connection", (socket) => {
clearTimeout(socket.conn.pingIntervalTimer);
}); The client won't receive a For a import { io } from "socket.io-client";
const socket = io();
socket.on("connect", () => {
socket.io.engine._sendPacket = () => {};
}); The server won't receive the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I am testing my socket, I use jest for testing I need to trigger a disconnection with the ping timeout reason, specifically.. how can I do that?
Beta Was this translation helpful? Give feedback.
All reactions