From 120110fbbee1375905e06a629461112895f19bc6 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Wed, 22 Jun 2022 11:56:03 +0530 Subject: [PATCH] A few more reasons a participant could be closed with (#778) --- pkg/rtc/types/interfaces.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkg/rtc/types/interfaces.go b/pkg/rtc/types/interfaces.go index 182cea8b6..76f91ed62 100644 --- a/pkg/rtc/types/interfaces.go +++ b/pkg/rtc/types/interfaces.go @@ -65,12 +65,16 @@ type ParticipantCloseReason int const ( ParticipantCloseReasonClientRequestLeave ParticipantCloseReason = iota ParticipantCloseReasonRoomManagerStop + ParticipantCloseReasonRoomClose + ParticipantCloseReasonVerifyFailed ParticipantCloseReasonJoinFailed ParticipantCloseReasonJoinTimeout ParticipantCloseReasonRTCSessionFinish ParticipantCloseReasonStateDisconnected ParticipantCloseReasonPeerConnectionDisconnected ParticipantCloseReasonDuplicateIdentity + ParticipantCloseReasonMigrationComplete + ParticipantCloseReasonStale ParticipantCloseReasonServiceRequestRemoveParticipant ParticipantCloseReasonServiceRequestDeleteRoom ParticipantCloseReasonSimulateMigration @@ -84,6 +88,10 @@ func (p ParticipantCloseReason) String() string { return "CLIENT_REQUEST_LEAVE" case ParticipantCloseReasonRoomManagerStop: return "ROOM_MANAGER_STOP" + case ParticipantCloseReasonRoomClose: + return "ROOM_CLOSE" + case ParticipantCloseReasonVerifyFailed: + return "VERIFY_FAILED" case ParticipantCloseReasonJoinFailed: return "JOIN_FAILED" case ParticipantCloseReasonJoinTimeout: @@ -96,6 +104,10 @@ func (p ParticipantCloseReason) String() string { return "PEER_CONNECTION_DISCONNECTED" case ParticipantCloseReasonDuplicateIdentity: return "DUPLICATE_IDENTITY" + case ParticipantCloseReasonMigrationComplete: + return "MIGRATION_COMPLETE" + case ParticipantCloseReasonStale: + return "STALE" case ParticipantCloseReasonServiceRequestRemoveParticipant: return "SERVICE_REQUEST_REMOVE_PARTICIPANT" case ParticipantCloseReasonServiceRequestDeleteRoom: