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

Method get called when session get opened

Method get called when transport acquires this session

Method get called when transport releases this session

Method get called when session get closed

Implementors