Commit 0f5b92f
committed
fix: map remaining livekit.DisconnectReason to SDK's DisconnectReason
A few entries in livekit.DisconnectReason are not explicitly mapped to
the SDK's DisconnectReason. This causes them to be flagged as
"OtherReason", even though some of them could be useful if explicitly
mapped. i.e.: ROOM_DELETED, MIGRATION, SERVER_SHUTDOWN,
CONNECTION_TIMEOUT mean different things and can be treated differently.
Map ROOM_DELETED, MIGRATION and SERVER_SHUTDOWN to unique reasons.
Map CONNECTION_TIMEOUT and SIP_TRUNK_FAILURE to Failed.
The only remaining livekit.DisconnectReason is UKNOWN_REASON, which is
makes sense as OtherReason.1 parent 29efed7 commit 0f5b92f
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
| 136 | + | |
| 137 | + | |
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
| |||
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
| 153 | + | |
| 154 | + | |
150 | 155 | | |
151 | 156 | | |
152 | 157 | | |
153 | 158 | | |
154 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
155 | 168 | | |
156 | 169 | | |
157 | 170 | | |
| |||
0 commit comments