comparison sat/core/sat_main.py @ 2691:1ecceac3df96

plugin XEP-0198: Stream Management implementation: - hooks can now be set in stream onElement and send methods - xmllog refactored to use new hooks - client.isConnected now uses transport.connected method - fixed reconnection, SàT will now try to reconnect indefinitely until it success, unresolvable failure happen (e.g. invalid certificate), or explicit disconnection is requested (or a plugin change this behaviour) - new triggers: "stream_hooks", "disconnecting", "disconnected", and "xml_init" (replace "XML Initialized")
author Goffi <goffi@goffi.org>
date Sun, 18 Nov 2018 15:49:46 +0100
parents d715d912afac
children e347e32aa07f
comparison
equal deleted inserted replaced
2690:56bfe1b79204 2691:1ecceac3df96
43 import sat.plugins 43 import sat.plugins
44 from glob import glob 44 from glob import glob
45 import sys 45 import sys
46 import os.path 46 import os.path
47 import uuid 47 import uuid
48
48 49
49 try: 50 try:
50 from collections import OrderedDict # only available from python 2.7 51 from collections import OrderedDict # only available from python 2.7
51 except ImportError: 52 except ImportError:
52 from ordereddict import OrderedDict 53 from ordereddict import OrderedDict