disconnect() {
    if (this.connected) {
      this.packet({ type: PacketType.DISCONNECT });
    }
    this.destroy();
    if (this.connected) {
      this.onclose("io client disconnect");
    }
    return this;
  }
Disconnects the socket manually. In that case, the socket will not try to reconnect.

If this is the last active Socket instance of the {@link Manager}, the low-level connection will be closed.

@example
const socket = io();

socket.on("disconnect", (reason) => {
  // console.log(reason); prints "io client disconnect"
});

socket.disconnect();

@return self