close method

Future<void> close()

Terminates all active connections. If a server remains unclosed, the Dart process may not terminate.

Implementation

Future<void> close() async {
  for (var socket in _sockets) {
    await socket.close();
  }
}