Skip to content

Commit

Permalink
Centrifuge.connect
Browse files Browse the repository at this point in the history
  • Loading branch information
PlugFox committed Jul 16, 2023
1 parent 1463562 commit 1bd0217
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/src/client/centrifuge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@ import 'package:ws/ws.dart';
/// {@template centrifuge}
/// Centrifuge client.
/// {@endtemplate}
final class Centrifuge = CentrifugeBase with CentrifugeConnectionMixin;
final class Centrifuge extends CentrifugeBase with CentrifugeConnectionMixin {
/// {@macro centrifuge}
Centrifuge([CentrifugeConfig? config]) : super(config);

/// Create client and connect.
///
/// {@macro centrifuge}
factory Centrifuge.connect(String url, [CentrifugeConfig? config]) =>
Centrifuge(config)..connect(url);
}

/// {@nodoc}
@internal
Expand Down

0 comments on commit 1bd0217

Please sign in to comment.