A few more reasons a participant could be closed with (#778)

This commit is contained in:
Raja Subramanian
2022-06-22 11:56:03 +05:30
committed by GitHub
parent 007b5866a3
commit 120110fbbe
+12
View File
@@ -65,12 +65,16 @@ type ParticipantCloseReason int
const ( const (
ParticipantCloseReasonClientRequestLeave ParticipantCloseReason = iota ParticipantCloseReasonClientRequestLeave ParticipantCloseReason = iota
ParticipantCloseReasonRoomManagerStop ParticipantCloseReasonRoomManagerStop
ParticipantCloseReasonRoomClose
ParticipantCloseReasonVerifyFailed
ParticipantCloseReasonJoinFailed ParticipantCloseReasonJoinFailed
ParticipantCloseReasonJoinTimeout ParticipantCloseReasonJoinTimeout
ParticipantCloseReasonRTCSessionFinish ParticipantCloseReasonRTCSessionFinish
ParticipantCloseReasonStateDisconnected ParticipantCloseReasonStateDisconnected
ParticipantCloseReasonPeerConnectionDisconnected ParticipantCloseReasonPeerConnectionDisconnected
ParticipantCloseReasonDuplicateIdentity ParticipantCloseReasonDuplicateIdentity
ParticipantCloseReasonMigrationComplete
ParticipantCloseReasonStale
ParticipantCloseReasonServiceRequestRemoveParticipant ParticipantCloseReasonServiceRequestRemoveParticipant
ParticipantCloseReasonServiceRequestDeleteRoom ParticipantCloseReasonServiceRequestDeleteRoom
ParticipantCloseReasonSimulateMigration ParticipantCloseReasonSimulateMigration
@@ -84,6 +88,10 @@ func (p ParticipantCloseReason) String() string {
return "CLIENT_REQUEST_LEAVE" return "CLIENT_REQUEST_LEAVE"
case ParticipantCloseReasonRoomManagerStop: case ParticipantCloseReasonRoomManagerStop:
return "ROOM_MANAGER_STOP" return "ROOM_MANAGER_STOP"
case ParticipantCloseReasonRoomClose:
return "ROOM_CLOSE"
case ParticipantCloseReasonVerifyFailed:
return "VERIFY_FAILED"
case ParticipantCloseReasonJoinFailed: case ParticipantCloseReasonJoinFailed:
return "JOIN_FAILED" return "JOIN_FAILED"
case ParticipantCloseReasonJoinTimeout: case ParticipantCloseReasonJoinTimeout:
@@ -96,6 +104,10 @@ func (p ParticipantCloseReason) String() string {
return "PEER_CONNECTION_DISCONNECTED" return "PEER_CONNECTION_DISCONNECTED"
case ParticipantCloseReasonDuplicateIdentity: case ParticipantCloseReasonDuplicateIdentity:
return "DUPLICATE_IDENTITY" return "DUPLICATE_IDENTITY"
case ParticipantCloseReasonMigrationComplete:
return "MIGRATION_COMPLETE"
case ParticipantCloseReasonStale:
return "STALE"
case ParticipantCloseReasonServiceRequestRemoveParticipant: case ParticipantCloseReasonServiceRequestRemoveParticipant:
return "SERVICE_REQUEST_REMOVE_PARTICIPANT" return "SERVICE_REQUEST_REMOVE_PARTICIPANT"
case ParticipantCloseReasonServiceRequestDeleteRoom: case ParticipantCloseReasonServiceRequestDeleteRoom: