Skip to main content

sync_session

Function sync_session 

Source
pub async fn sync_session(state: &DispatchState, task_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. session_id is the row the server keys the mirror by, which for a client-held session is its task id.