Skip to content

Commit

Permalink
Add docs for DisconnectReason (#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzhao authored Feb 9, 2024
1 parent c108b6d commit 1f08c2d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/room/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@ export enum RoomEvent {

/**
* When disconnected from room. This fires when room.disconnect() is called or
* when an unrecoverable connection issue had occured
* when an unrecoverable connection issue had occured.
*
* DisconnectReason can be used to determine why the participant was disconnected. Notable reasons are
* - DUPLICATE_IDENTITY: another client with the same identity has joined the room
* - PARTICIPANT_REMOVED: participant was removed by RemoveParticipant API
* - ROOM_DELETED: the room has ended via DeleteRoom API
*
* args: ([[DisconnectReason]])
*/
Disconnected = 'disconnected',

Expand Down

0 comments on commit 1f08c2d

Please sign in to comment.