Skip to content

Commit 31568fa

Browse files
authored
Merge pull request #203 from GetStream/expose-connection-status-stream
2 parents e065fa3 + b9e51b7 commit 31568fa

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Diff for: packages/faye_dart/lib/src/client.dart

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import 'package:web_socket_channel/web_socket_channel.dart';
1414

1515
import 'package:faye_dart/src/extensible.dart';
1616

17+
/// Connexion status of the client
1718
enum FayeClientState {
1819
unconnected,
1920
connecting,

Diff for: packages/faye_dart/lib/src/subscription.dart

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ class Subscription {
1111
WithChannelCallback? _withChannel;
1212
bool _cancelled = false;
1313

14+
/// Connexion status stream
15+
Stream<FayeClientState> get stateStream => _client.stateStream;
16+
1417
Subscription(
1518
this._client,
1619
this._channel, {

Diff for: packages/stream_feed_flutter/test/theme/stream_feed_theme_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void main() {
5656
'childReactionTheme: ChildReactionThemeData#00000(hoverColor: null, toggleColor: null)',
5757
'reactionTheme: ReactionThemeData#00000(hoverColor: null, toggleHoverColor: null, iconHoverColor: null, hashtagTextStyle: null, mentionTextStyle: null, normalTextStyle: null)',
5858
'brightness: light',
59-
'primaryIconTheme: IconThemeData#384a7',
59+
'primaryIconTheme: IconThemeData#00785',
6060
'gifDialogTheme: GifDialogThemeData#00000(boxDecoration: null, iconColor: null)',
6161
'ogCardTheme: OgCardThemeData#00000(titleTextStyle: null, descriptionTextStyle: null)',
6262
'userBarTheme: UserBarThemeData#007db(avatarSize: null, usernameTextStyle: null, timestampTextStyle: null)',

0 commit comments

Comments
 (0)