Changeset 173:6b0eb01b5744 for doc/xmppim.rst
- Timestamp:
- May 9, 2012, 2:24:28 PM (10 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/xmppim.rst
r172 r173 32 32 :language: python 33 33 :linenos: 34 35 Roster versioning 36 ^^^^^^^^^^^^^^^^^ 37 38 Some XMPP servers support roster versioning. A client can keep a cache of the 39 roster by requesting it and applying changes as roster pushes come in. Each 40 version of the roster is marked with a version identifier. This can be used 41 to request the roster upon reconnect. The server can then choose to send the 42 difference between the requested and current version as roster pushed, 43 instead of returning the complete roster. 44 45 When no roster was cached by the client, yet, a client passes the empty 46 string (``''``) to ``getRoster`` to bootstrap the process. 47 48 This example will force a reconnect 15 seconds after authentication. 49 50 .. literalinclude:: listings/xmppim/roster_client_versioning.py 51 :language: python 52 :linenos:
Note: See TracChangeset
for help on using the changeset viewer.