comparison sat/plugins/plugin_xep_0215.py @ 4044:3900626bc100

plugin XEP-0166: refactoring, and various improvments: - add models for transport and applications handlers and linked data - split models into separate file - some type hints - some documentation comments - add actions to prepare confirmation, useful to do initial parsing of all contents - application arg/kwargs and some transport data can be initialised during Jingle `initiate` call, this is notably useful when a call is made with transport data (this is the call for A/V calls where codecs and ICE candidate can be specified when starting a call) - session data can be specified during Jingle `initiate` call - new `store_in_session` argument in `_parse_elements`, which can be used to avoid race-condition when a context element (<decription> or <transport>) is being parsed for an action while an other action happens (like `transport-info`) - don't sed `sid` in `transport_elt` during a `transport-info` action anymore in `build_action`: this is specific to Jingle File Transfer and has been moved there rel 419
author Goffi <goffi@goffi.org>
date Mon, 15 May 2023 16:23:11 +0200
parents 524856bd7b19
children
comparison
equal deleted inserted replaced
4043:9641ce286e07 4044:3900626bc100
165 ) -> List[Dict]: 165 ) -> List[Dict]:
166 """Get non XMPP service proposed by the entity 166 """Get non XMPP service proposed by the entity
167 167
168 Response is cached after first query 168 Response is cached after first query
169 169
170 @param entity: XMPP entity to query. Defaut to our own server 170 @param entity: XMPP entity to query. Default to our own server
171 @return: found services 171 @return: found services
172 """ 172 """
173 if entity is None: 173 if entity is None:
174 entity = client.server_jid 174 entity = client.server_jid
175 175