-
Notifications
You must be signed in to change notification settings - Fork 17
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
Conversation
…sables reconnect on kick.
* 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.) |
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.
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)
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.
changed
@@ -271,6 +276,7 @@ export class HiFiMixerSession { | |||
this._lastSuccessfulInputAudioMutedValue = false; | |||
this.onMuteChanged = onMuteChanged; | |||
this._getUserFacingConnectionState = getUserFacingConnectionState; | |||
this._disableReconnect = false; |
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.
_disableReconnect
should also be set to false when the client intentionally connects, i.e. through HiFiCommunicator.connectToHiFiAudioAPIServer
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.
fixed
ea4c1f7
No description provided.