Commit e296159
authored
Ensure participant disconnects are synthesized after connection resume (#1250)
### Before you submit your PR
Make sure the following is true before submitting your PR:
- [ ] I have read the [contributing
guidelines](https://github.com/livekit/rust-sdks/blob/main/CONTRIBUTING.md)
and validated that this PR will be accepted.
- [ ] I have read and followed the principles regarding breaking
changes, testing, and code quality.
### PR description
Describe the changes in this PR. Explain what the PR is meant to solve
and how to reproduce the issue in the first place.
### Breaking changes
If this PR introduces breaking changes, list them here and document the
rationale for introducing such a change.
### MSRV
If the PR modifies the crate's MSRV (Minimum Supported Rust Version),
document it here.
### Testing
Ideally, unit test the code you add, but ensure you're not repeating
existing test cases. Use as many already written scaffolding, utilities
as possible; write your own, when needed. If external services, APIs,
tokens are required (e.g., running an LK server instance), provide the
necessary information. Make sure your tests perform useful,
context-aware assertions and do not simply emulate "happy paths".
### Async
We want the project to be runtime-agnostic, so please reuse what's
already in
[livekit-runtime](https://github.com/livekit/rust-sdks/blob/main/livekit-runtime/)
and feel free to add anything missing. It's ok to use Tokio directly,
when writing unit tests, if necessary. When testing, do not use
artificial delays for the state to "catch up"; instead, respect the
event flow and subscribe properly using channels or other mechanisms.1 parent acff35f commit e296159
6 files changed
Lines changed: 279 additions & 2 deletions
File tree
- .changeset
- livekit
- specs
- src
- room
- rtc_engine
- tests
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
568 | 574 | | |
569 | 575 | | |
570 | 576 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
847 | 852 | | |
848 | 853 | | |
849 | 854 | | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
850 | 864 | | |
851 | 865 | | |
852 | 866 | | |
| |||
975 | 989 | | |
976 | 990 | | |
977 | 991 | | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
978 | 995 | | |
979 | 996 | | |
980 | 997 | | |
| |||
1132 | 1149 | | |
1133 | 1150 | | |
1134 | 1151 | | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
1135 | 1178 | | |
1136 | 1179 | | |
1137 | 1180 | | |
| |||
1536 | 1579 | | |
1537 | 1580 | | |
1538 | 1581 | | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
1539 | 1587 | | |
1540 | 1588 | | |
1541 | 1589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
117 | 123 | | |
118 | 124 | | |
119 | 125 | | |
| |||
437 | 443 | | |
438 | 444 | | |
439 | 445 | | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
440 | 453 | | |
441 | 454 | | |
442 | 455 | | |
| |||
1156 | 1169 | | |
1157 | 1170 | | |
1158 | 1171 | | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
1159 | 1181 | | |
1160 | 1182 | | |
1161 | 1183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
404 | 419 | | |
405 | 420 | | |
406 | 421 | | |
| |||
620 | 635 | | |
621 | 636 | | |
622 | 637 | | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
623 | 641 | | |
624 | 642 | | |
625 | 643 | | |
| |||
809 | 827 | | |
810 | 828 | | |
811 | 829 | | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
812 | 848 | | |
813 | 849 | | |
814 | 850 | | |
| |||
1387 | 1423 | | |
1388 | 1424 | | |
1389 | 1425 | | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
1390 | 1436 | | |
1391 | 1437 | | |
1392 | 1438 | | |
1393 | 1439 | | |
1394 | 1440 | | |
1395 | 1441 | | |
1396 | 1442 | | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
1397 | 1446 | | |
1398 | 1447 | | |
1399 | 1448 | | |
| |||
2140 | 2189 | | |
2141 | 2190 | | |
2142 | 2191 | | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
2143 | 2196 | | |
2144 | 2197 | | |
2145 | 2198 | | |
| |||
0 commit comments