Commit 3b14460
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. e.g.: ROOM_DELETED, MIGRATION, SERVER_SHUTDOWN,
CONNECTION_TIMEOUT mean different things and may 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 UNKNOWN_REASON, which
makes sense as `OtherReason`.1 parent 29efed7 commit 3b14460
1 file changed
+14
-1
lines changed| 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