close method

  1. @override
Future<void> close()
override

Releases any resources this transport owns.

Implementation

@override
Future<void> close() async {
  closed = true;
  for (final connection in _connections) {
    if (!connection.isClosed) await connection.close();
  }
}