public function leave(Session $session)
    {
        Logger::debug($this, "Leaving realm {$session->getRealm()->getRealmName()}");

        $key = array_search($session, $this->sessions, true);

        if ($key !== false) {
            array_splice($this->sessions, $key, 1);
        }
    }
public function leave(Session $session)
    {
        Logger::debug($this, "Leaving realm {$session->getRealm()->getRealmName()}");

        $key = array_search($session, $this->sessions, true);

        if ($key !== false) {
            array_splice($this->sessions, $key, 1);
        }
    }
public function leave ( Session $ session ) { Logger :: debug ( $ this , "Leaving realm {$session->getRealm()->getRealmName()}" ) ; $ key = array_search ( $ session , $ this -> sessions , true ) ; if ( $ key !== false ) { array_splice ( $ this -> sessions , $ key , 1 ) ; } }
Process on session leave

@param \Thruway\Session $session
Process on session leave