Repository navigation
Commit 799dee7
authored
ScopedBusTui.close() previously called inner.close(), which closed the
shared WebSocket connection and broke every other consumer of the same
parent bus. A scoped view is a channel-namespace wrapper, not a
connection owner — its close() must be a no-op.
Also adds an explicit close() override on ScopedBusClient. The base
BusClient had no close() method, so ScopedBusClient was inheriting
nothing — but that becomes a footgun the moment the base class gains
lifecycle management (HTTP keep-alive pooling, binary shutdown).
Added a no-op close() on the base BusClient to document the contract
and let ScopedBusClient override it cleanly.
Regression test in test/scoped-close.test.ts: 3 cases, all pass with
the fix and all fail without it (verified via git stash).
1 parent 75c3e9a commit 799dee7
8 files changed
Lines changed: 134 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments