disconnect method

void disconnect()

Implementation

void disconnect() {
  channel = null;
  controller!.close();
}