-
Notifications
You must be signed in to change notification settings - Fork 0
Expose connectionStateStream in pipe_client #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
StreamControllertoHubConnectionto track and broadcast connection state changes - Introduced an
updateConnectionStatemethod that updates both the internal state and emits to the stream - Exposed the connection state stream through both
HubConnectionandPipeClientpublic 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.
mateusz-pietras
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.