destroy method

void destroy()
override

Implementation

void destroy() {
  // if (connected)
  close();
  //emitArgs("close", [this]);
  //OnDestroy?.Invoke(this);
}