Table of Contents

Enum DisconnectReason

Namespace
LiveKit.Proto
Assembly
LiveKit.AspNetCore.ServerSdk.Abstractions.dll
public enum DisconnectReason

Fields

[OriginalName("AGENT_ERROR")] AgentError = 16

agent encountered an error

[OriginalName("CLIENT_INITIATED")] ClientInitiated = 1

the client initiated the disconnect

[OriginalName("CONNECTION_TIMEOUT")] ConnectionTimeout = 14

server timed out a participant session

[OriginalName("DUPLICATE_IDENTITY")] DuplicateIdentity = 2

another participant with the same identity has joined the room

[OriginalName("JOIN_FAILURE")] JoinFailure = 7

client was unable to connect fully

[OriginalName("MEDIA_FAILURE")] MediaFailure = 15

media stream failure or media timeout

[OriginalName("MIGRATION")] Migration = 8

Cloud-only, the server requested Participant to migrate the connection elsewhere

[OriginalName("PARTICIPANT_REMOVED")] ParticipantRemoved = 4

RoomService.RemoveParticipant was called

[OriginalName("ROOM_CLOSED")] RoomClosed = 10

the room was closed, due to all Standard and Ingress participants having left

[OriginalName("ROOM_DELETED")] RoomDeleted = 5

RoomService.DeleteRoom was called

[OriginalName("SERVER_SHUTDOWN")] ServerShutdown = 3

the server instance is shutting down

[OriginalName("SIGNAL_CLOSE")] SignalClose = 9

the signal websocket was closed unexpectedly

[OriginalName("SIP_TRUNK_FAILURE")] SipTrunkFailure = 13

SIP protocol failure or unexpected response

[OriginalName("STATE_MISMATCH")] StateMismatch = 6

the client is attempting to resume a session, but server is not aware of it

[OriginalName("UNKNOWN_REASON")] UnknownReason = 0
[OriginalName("USER_REJECTED")] UserRejected = 12

SIP callee rejected the call (busy)

[OriginalName("USER_UNAVAILABLE")] UserUnavailable = 11

SIP callee did not respond in time