Future stop()

Source

Future stop() {
  return Future.wait(sockets.map((it) => it.stop()).toList());
}