Is there any way to close idle socket.io connections for too long?

158 Views Asked by At

Is there any way to close idle socket.io connections ? or I need to track from my client side. My socket.io version is 4.4.1

1

There are 1 best solutions below

0
Sanjay Singh On

I have done by using setInterval and if he is idle for too long then I have closed connection by calling socket.disconnect()