I want to detect client-side when a user has disconnected **due to INACTIVITY**. For me, using a disconnect() event doesn't work because it encompasses other forms of a client disconnecting besides inactivity.

My current code:

```
var socket = io.connect();

socket.on("disconnect", () => {
    console.log("You have been disconnected from the match.");
});

```