Skip to main content

sync_session

Function sync_session 

Source
pub async fn sync_session(state: &DispatchState, session_id: &str) -> Result<()>
Expand description

Publish the current projection of one session.

The frame is the client’s heartbeat report carrying the whole projection: one frame per session activity, and the only one that puts a session’s state on the wire. The argument names the session, or the delivery a caller has in hand: a client-held session takes its id from the delivery that opened it, so both spellings reach the same row and the slot the client holds decides which session that is.