Skip to content

Commit e8569e3

Browse files
Merge branch 'main' of github.com:livekit/client-sdk-cpp into alan/bugfix-room-shutdown
2 parents a2e6a9e + 141a89b commit e8569e3

5 files changed

Lines changed: 26 additions & 491 deletions

File tree

include/livekit/room_event_types.h

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,22 +78,40 @@ enum class EncryptionState {
7878
///
7979
/// These values mirror the server-side DisconnectReason enum.
8080
enum class DisconnectReason {
81+
/// Unknown or unspecified disconnect reason.
8182
Unknown = 0,
83+
/// The client initiated the disconnect.
8284
ClientInitiated,
85+
/// Another participant with the same identity has joined the room.
8386
DuplicateIdentity,
87+
/// The server instance is shutting down.
8488
ServerShutdown,
89+
/// The participant was removed from the room by the server.
8590
ParticipantRemoved,
91+
/// The room was deleted by the server.
8692
RoomDeleted,
93+
/// The client is attempting to resume a session, but server is not aware of it.
8794
StateMismatch,
95+
/// Client was unable to connect fully.
8896
JoinFailure,
97+
/// Cloud-only: the server requested the participant to migrate the connection elsewhere.
8998
Migration,
99+
/// The signal websocket was closed unexpectedly.
90100
SignalClose,
101+
/// The room was closed, due to all Standard and Ingress participants having left.
91102
RoomClosed,
103+
/// SIP callee did not respond in time.
92104
UserUnavailable,
105+
/// SIP callee rejected the call (busy).
93106
UserRejected,
94-
SipTrunkFailure, ///< SIP (telephony) trunk connection failed
107+
/// SIP protocol failure or unexpected response.
108+
SipTrunkFailure,
109+
/// Server timed out a participant session.
95110
ConnectionTimeout,
96-
MediaFailure
111+
/// Media stream failure or media timeout.
112+
MediaFailure,
113+
/// Agent encountered an error.
114+
AgentError
97115
};
98116

99117
/// Application-level user data carried in a data packet.

0 commit comments

Comments
 (0)