Hi,

I am quite new and I hope I send this to the right list. I just
started off with vysper and I found that I don't get notofied when the
connection gets lost (for example when I force eclispe to shut down my
process, I still see the user as available.

I dived into the code and found some todo's in AbstractSessionContext:

 public void endSession() {
        // thats one of my first ideas
        LatestPresenceCache presenceCache
=getServerRuntimeContext().getPresenceCache();
        PresenceStanza stanza = presenceCache.remove(initiatingEntity);
        
        StanzaWriter stanzaWriter = getResponseWriter();
        stanzaWriter.close();
        sessionStateHolder.setState(SessionState.CLOSED); // no more
traffic going through
        getServerRuntimeContext().getResourceRegistry().unbindSession(this);
        // TODO send unavailable to all contacts and other resources
        // TODO remove latest availability from LatestPresenceCache
        // TODO close underlying transport (TCP socket)
    }

I dont have to exact knowledge of the protocol, but could you give me
a hint if this is ok so far and how I can get the roster of the entity
to send them unavailable Stanzas ?

Any help would be appreciated.

Regards Thomas
-- 
http://www.buchmanager.com
http://thomaskratz.blogspot.com

Reply via email to