lukepighetti / mastodon_dart

Unofficial 🐘 client written in 🎯
https://pub.dev/packages/mastodon_dart
MIT License
28 stars 8 forks source link

Stop requiring websocketFactory #45

Closed abraham closed 1 year ago

abraham commented 1 year ago

Avoid having to instantiate with a websocketFactory when only using the rest API.

Old:

Mastodon(
    website,
    websocketFactory: (Uri uri) {
      throw UnimplementedError();
    },
  );

New:

Mastodon.(Uri.parse('https://mastodon.social'));

Alternative to https://github.com/lukepighetti/mastodon_dart/pull/46