Files
SpacetimeDB/crates/client-api
Kim Altintop f7d94efb69 Fix module hotswapping for connected clients (#3159)
The `Clone` impl for `ClientConnection` would create an independent
instance that could not observe module hotswapping. This would result in
methods called on a replaced `ModuleHost` to fail, because that host
exited already.

Fix by reading the `ModuleHost` from the watch channel directly, instead
of maintaining a redundant copy.

Also fix `watch_module_host` to properly mark the current module host as
seen.

# Expected complexity level and risk

2

# Testing

- [x] test suite passes
- [x] ran @bfops repro script
2025-08-20 12:07:07 -07:00
..
2023-08-03 02:07:38 +02:00

⚠️ Internal Crate ⚠️

This crate is intended for internal use only. It is not stable and may change without notice.