close method

Future<void> close()

Closes the connection.

Implementation

Future<void> close() async {
  if (_session is Connection) {
    await (_session as Connection).close();
  }

  return Future.value();
}