priority -- the resource priority, default: 0 (not defined before initial presence)\r
presence -- the last non-directed presence. initially nil.\r
interested -- true if the resource requested the roster. Interested resources recieve roster updates. Initially nil.\r
+ roster -- the user's roster. Loaded as soon as the resource is bound (session becomes a connected resource).\r
\r
-- methods --\r
send(x) -- converts x to a string, and writes it to the connection\r
disconnect(x) -- Disconnect the user and clean up the session, best call sessionmanager.destroy_session() instead of this in most cases\r
}\r
\r
-A session is a "connected resource"\r
+if session.full_jid (also session.roster and session.resource) then this is a "connected resource"\r
if session.presence then this is an "available resource"\r
if session.interested then this is an "interested resource"\r