Commit 8a550ed
committed
fix: fire onPeerDisconnect before session cleanup mutates meta
_emitSessionDisconnected -> streaming's _onSessionDisconnected clears
meta.subscribedStreams in place. onPeerDisconnect ran after that, so
consumers never saw the raw session meta the doc comment promises.
Also updates the adapters/dev API snapshot for the new
onPeerConnect/onPeerDisconnect options, which CI caught as stale.1 parent d6c894e commit 8a550ed
2 files changed
Lines changed: 3 additions & 1 deletion
File tree
- packages/devframe/src/node
- tests/__snapshots__/tsnapi/devframe/adapters
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | 235 | | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
0 commit comments