Skip to content

Conversation

@Komoszek
Copy link
Contributor

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for exposing connection state changes as a Stream in the PipeClient by implementing a state change stream in the underlying HubConnection class.

Key Changes:

  • Added a StreamController to HubConnection to track and broadcast connection state changes
  • Introduced an updateConnectionState method that updates both the internal state and emits to the stream
  • Exposed the connection state stream through both HubConnection and PipeClient public APIs

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
dart/lib/signalr_core/src/hub_connection.dart Implements connection state streaming by adding a StreamController, replacing direct state assignments with updateConnectionState calls, and exposing the stream via a public getter
dart/lib/leancode_pipe/pipe_client.dart Exposes the connection state stream by mapping HubConnection states to PipeConnectionStates and providing a public getter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@mateusz-pietras mateusz-pietras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants