mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 19:32:41 +00:00
A few more reasons a participant could be closed with (#778)
This commit is contained in:
1 parent
007b5866a3
commit
120110fbbe
1 file changed
+12
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user