close method

Future<void> close()

Implementation

Future<void> close() async {
  for (final socket in _clients.values) {
    await socket.disconnect();
  }
  await _server?.close(force: true);
}