Closed hawkkiller closed 1 year ago
The discord_connection.dart directly depends on ws package. It would be much better to create an interface like so:
discord_connection.dart
abstract interface class WsClient { Future<void> add(Object item); Future<void> connect(Uri uri); Stream<Object> get incoming; }
The
discord_connection.dart
directly depends on ws package. It would be much better to create an interface like so: