Trait jsonrpc_ws_server::SessionStats
source · [−]pub trait SessionStats: 'static + Send + Sync {
fn open_session(&self, id: u64);
fn close_session(&self, id: u64);
}
Expand description
Keeps track of open sessions
Required methods
fn open_session(&self, id: u64)
fn open_session(&self, id: u64)
Executed when new session is opened.
fn close_session(&self, id: u64)
fn close_session(&self, id: u64)
Executed when session is closed.