close method

void close()

Close the socket if opened.

Implementation

void close() {
  _soc?.close();
  _soc = null;
}