close method
void
close()
Closes the current connection.
Implementation
void close() {
if (_done != null) {
_done!.complete('done');
} else if (_socket != null) {
_socket!.close();
} else {
_completed = true;
}
}