get disconnected() {
    return !this.connected;
  }
Whether the socket is currently disconnected

@example
const socket = io();

socket.on("connect", () => {
  console.log(socket.disconnected); // false
});

socket.on("disconnect", () => {
  console.log(socket.disconnected); // true
});