void close()

Source

void close() {
  if (_wsConnection != null) {
    _wsConnection.close();
    _wsConnection = null;
  }
}