Future ping()

Source

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