close method

  1. @override
Future close()
override

Implementation

@override
Future close() async {
  for(Socket connection in _connection){
    await connection.close();
  }

  for(ServerSocket server in _servers){
    await server.close();
  }

  for(StreamController controller in _streams){
    await controller.close();
  }
}