Skip to main content
Runs once when the session ends. self.state is still readable here and is dropped right after. This is where a model resets whatever it holds outside the state, since the runtime never touches your model.
When a session ends, the runtime tears down every connection at once and does not call @disconnected for each of them.