hawkkiller / midjourney_client

Unofficial midjourney client that gives you possibility to generates images!
https://pub.dev/packages/midjourney_client
MIT License
10 stars 3 forks source link

Discord connection websocket interface #23

Closed hawkkiller closed 1 year ago

hawkkiller commented 1 year ago

The discord_connection.dart directly depends on ws package. It would be much better to create an interface like so:

abstract interface class WsClient {
  Future<void> add(Object item);
  Future<void> connect(Uri uri);
  Stream<Object> get incoming;
}