matrix_homeserver_recommendations 0.1.1 copy "matrix_homeserver_recommendations: ^0.1.1" to clipboard
matrix_homeserver_recommendations: ^0.1.1 copied to clipboard

outdated

Find, filter and benchmark public Matrix homeservers and check their capabilities

example/matrix_homeserver_recommendations_example.dart

import 'package:matrix_homeserver_recommendations/matrix_homeserver_recommendations.dart';
import 'package:matrix_homeserver_recommendations/src/parsers/joinmatrix_org_parser.dart';

Future<int> main() async {
  print('Loading homeservers from joinMatrix.org...');
  var joinMatrixParser = JoinmatrixOrgParser();
  final homeservers = await joinMatrixParser.fetchHomeservers();

  print('Found the following homeservers:');
  for (var server in homeservers) {
    print(server);
  }

  print('Performing response time benchmark...');
  final result = await HomeserverListProvider.benchmarkHomeserver(
    homeservers,
    timeout: Duration(seconds: 10),
    includeFailed: false,
  );
  print('The following response times were captured:');
  for (var benchmark in result) {
    print(benchmark);
  }
  print('Example completed.');
  return 0;
}
0
likes
0
pub points
81%
popularity

Publisher

verified publisherwith-the-braid.cf

Find, filter and benchmark public Matrix homeservers and check their capabilities

Repository (GitLab)
View/report issues

License

unknown (LICENSE)

Dependencies

csv, http, matrix_api_lite

More

Packages that depend on matrix_homeserver_recommendations