sysmonk::routes::websocket

Function session_handler

source
async fn session_handler(session: Session, duration: i64)
Expand description

Handles the session by closing it after a certain duration.

ยงArguments

  • session - A reference to the Actix web Session object.
  • duration - Duration in seconds to keep the session alive.