Trait sockjs::Session
[−]
[src]
pub trait Session: Actor<Context = SockJSContext<Self>> + Default + Handler<Message> { fn opened(&mut self, ctx: &mut SockJSContext<Self>) { ... } fn acquired(&mut self, ctx: &mut SockJSContext<Self>) { ... } fn released(&mut self, ctx: &mut SockJSContext<Self>) { ... } fn closed(&mut self, ctx: &mut SockJSContext<Self>, reason: CloseReason) { ... } }
This trait defines sockjs session
Provided Methods
fn opened(&mut self, ctx: &mut SockJSContext<Self>)
Method get called when session get opened
fn acquired(&mut self, ctx: &mut SockJSContext<Self>)
Method get called when transport acquires this session
fn released(&mut self, ctx: &mut SockJSContext<Self>)
Method get called when transport releases this session
fn closed(&mut self, ctx: &mut SockJSContext<Self>, reason: CloseReason)
Method get called when session get closed