feat: Forward leave reason of disconnected events. (#250)

* feat: Forward leave reason of disconnected events.

* fix analyze.

* chore: print room disconnect reason when event.reason != null.

* chore: rename InternalDisconnectReason => ClientDisconnectReason.
This commit is contained in:
CloudWebRTC
2023-03-07 17:54:18 +08:00
committed by GitHub
parent db2e25d424
commit c74e6777d8
9 changed files with 66 additions and 22 deletions
+2
View File
@@ -247,8 +247,10 @@ class EngineActiveSpeakersUpdateEvent with EngineEvent, InternalEvent {
@internal
class SignalLeaveEvent with SignalEvent, InternalEvent {
final bool canReconnect;
final lk_models.DisconnectReason reason;
const SignalLeaveEvent({
required this.canReconnect,
required this.reason,
});
}