Skip to content
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

HIFI-630 Server notifies client why it's disconnecting, and client disables reconnect on kick #171

Merged
merged 4 commits into from
Aug 19, 2021

Conversation

roxanneskelly
Copy link

No description provided.

* set to true, a connection that is disconnected via a purposeful server-side
* action (e.g. a "kick") will be automatically reconnected. (However, connections
* that are explicitly closed from the client side via the `disconnectFromHiFiAudioAPIServer()`
* method will stay closed.)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should update this comment to explicitly mention that the client will not attempt to reconnect if HiFiConnectionAttemptResult.disableReconnect is true. (The comments in this class are included in the JS API docs)

Copy link
Author

Choose a reason for hiding this comment

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

changed

@@ -271,6 +276,7 @@ export class HiFiMixerSession {
this._lastSuccessfulInputAudioMutedValue = false;
this.onMuteChanged = onMuteChanged;
this._getUserFacingConnectionState = getUserFacingConnectionState;
this._disableReconnect = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

_disableReconnect should also be set to false when the client intentionally connects, i.e. through HiFiCommunicator.connectToHiFiAudioAPIServer

Copy link
Author

Choose a reason for hiding this comment

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

fixed

AndrewMeadows
AndrewMeadows previously approved these changes Aug 17, 2021
@zfox23 zfox23 merged commit a045f35 into highfidelity:main Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants