Added session_end event and some docs.

For now, session_end is the same as disconnected, but once support is
added later for stream management, the two events will become distinct.

Plugins should add handlers for session_end for cleaning any session
state.
This commit is contained in:
Lance Stout
2011-06-08 10:24:25 -07:00
parent 4266ee0fa4
commit e219c0f976
2 changed files with 66 additions and 1 deletions

View File

@@ -389,6 +389,7 @@ class XMLStream(object):
self.event('socket_error', serr)
finally:
#clear your application state
self.event('session_end', direct=True)
self.event("disconnected", direct=True)
return True