mathieui
d850b9a9f7
types: move pluginsdict to a dedicated file
...
And add some Literal types.
2021-02-06 12:28:32 +01:00
mathieui
bbd351e9c1
global: rewrite copyright notice to use comments
2021-02-05 20:46:18 +01:00
mathieui
6c3f26161e
itests: allow pconfig registration with plugins
2021-02-05 20:08:16 +01:00
mathieui
d6ab3124ce
XEP-0084: add integer wrappers for int stanza attributes
2021-02-05 20:08:16 +01:00
mathieui
cb8d2edc8d
XEP-0191: Add type hints and switch to default args
2021-02-05 20:08:16 +01:00
mathieui
69e04d7d2e
XEP-0153: Add typing and switch to default args
...
(and refactor a bit)
2021-02-05 20:08:16 +01:00
mathieui
ace5aeb80e
XEP-0153: Fix a bug that would add muc elements to inbound presence
2021-02-05 20:08:16 +01:00
mathieui
712ac671e1
XEP-0152: Add type hints and switch to default args
2021-02-05 20:08:16 +01:00
mathieui
99c2e5cafd
XEP-0092: Add type hints and switch to default args
2021-02-05 20:08:16 +01:00
mathieui
8e612bf229
XEP-0084: Add type hints and switch to default args
2021-02-05 20:08:16 +01:00
mathieui
7860edefe9
XEP-0054: Add type hints and switch to default args
2021-02-05 20:08:16 +01:00
mathieui
fbb8993244
XEP-0049: Add type hints and switch to default args
2021-02-04 20:35:22 +01:00
mathieui
77c8caf205
XEP-0012: Add type hints and switch to default args
2021-02-04 20:27:07 +01:00
mathieui
69b265b975
stanzabase: make _get_plugin part of the public API
...
it is the only way I know of checking if an element is present in a
stanza without creating it or checking the XML manually.
2021-02-04 19:25:55 +01:00
mathieui
ccbba89cbd
xmlstream: make dns_answers private
2021-02-04 19:22:13 +01:00
mathieui
d3063a0368
xmlstream: make connect_loop_wait private
2021-02-04 19:22:13 +01:00
mathieui
782dbdea65
docs: remove python 2 bug workaround explanations
2021-02-04 18:32:10 +01:00
mathieui
650e1a2ed5
docs/xmlstream: remove HTTP proxy references
...
It has been removed years ago.
2021-02-04 18:31:43 +01:00
mathieui
cb3d9dd41c
XEP-0196: Fix return values and typing
2021-02-03 22:24:40 +01:00
mathieui
e6e57f6e8c
XEP-0172: Fix return values and typing
2021-02-03 22:24:24 +01:00
mathieui
64299d6a54
XEP-0118: Fix return values and typing
2021-02-03 22:24:03 +01:00
mathieui
f6761e513d
XEP-0108: Fix return values and typing
2021-02-03 22:23:44 +01:00
mathieui
f2878e1764
XEP-0107: Fix return values and typing
2021-02-03 22:23:16 +01:00
mathieui
a16792e990
basexmpp: type self.plugins in a more useful manner
2021-02-03 21:53:43 +01:00
mathieui
846c42e386
XEP-0045: make the join_muc_wait timeout parameter optional
2021-01-31 19:39:12 +01:00
mathieui
c7d87a27e1
XEP-0045: Add a join_muc_wait function
...
Which is async, raises on timeout or error, and returns when
joined.
2021-01-31 17:15:47 +01:00
mathieui
a8113dca49
XEP-0045: Add a specific handler for MUC presence errors
2021-01-31 17:15:47 +01:00
mathieui
eda692d1c6
XEP-0045: add a directed event for self-presence
2021-01-31 17:02:51 +01:00
mathieui
7932a03378
xmlstream: add a simple contextmanager for temporary events
2021-01-31 17:01:41 +01:00
mathieui
e9b07e32bb
exceptions: add a PresenceError exception
2021-01-31 17:00:42 +01:00
mathieui
8689212602
Merge branch 'mix-additions' into 'master'
...
MIX additions: handle MIX-PAM with roster and new events
See merge request poezio/slixmpp!108
2021-01-31 12:48:44 +01:00
mathieui
58f4ccf5c7
xeps: fix description for the newer plugins
2021-01-30 18:52:54 +01:00
mathieui
04a3f609e2
XEP-0405: Manage MIX Roster items
2021-01-30 18:17:12 +01:00
mathieui
119f59ecbe
XEP-0369: Add events for channel/participants
2021-01-30 17:42:20 +01:00
mathieui
d954283fb6
version: update to 1.7.0
2021-01-29 21:50:43 +01:00
mathieui
f93af07882
XEP-0198: do not send acks when disconnected
2021-01-29 16:07:44 +01:00
mathieui
3f739e513b
xmlstream: keep value of "end_session_on_disconnect"
...
That value should be set statically. Worst case is we fail to resume the
session.
2021-01-29 15:33:44 +01:00
mathieui
fc7d7b4eb7
XEP-0198: Enable SM even if we failed resuming the session
...
And trigger session_end only after we fail the resuming.
2021-01-29 15:33:44 +01:00
mathieui
3642e2c7f4
xmlstream: ensure slow futures are scheduled on this loop
2021-01-29 15:33:44 +01:00
mathieui
f15311bda8
xmlstream: Make the reconnect handler a coroutine
2021-01-29 15:33:44 +01:00
mathieui
b2dfb4c1f3
xmlstream: do not touch connection state on abort()
...
leave it to the connection_lost handler
2021-01-29 15:33:44 +01:00
mathieui
d227579d56
xmlstream: set disconnected future on event
2021-01-29 15:33:44 +01:00
mathieui
571774edb4
xmlstream: end the parser when the stream has ended
2021-01-29 15:33:44 +01:00
mathieui
456dff0b61
xmlstream: rename run_filters
2021-01-29 15:33:44 +01:00
mathieui
a0b6bfcefe
xmlstream: change the connection logic
...
* use asyncio wait_for to wait for a disconnected event
* abort the connection if the timeout is not enough
2021-01-29 15:33:44 +01:00
mathieui
9fbd40578c
xmlstream: purge send queue and pending tasks on session end
...
and keep track of slow tasks
2021-01-29 15:33:44 +01:00
mathieui
8700f8d162
xmlstream: do not cancel the send filter task
...
it does not make sense to cancel it, it does not do anything when the
sending queue is empty, and clients should not fill the send queue when
not connected anyway.
2021-01-28 17:54:40 +01:00
mathieui
efdcd396d8
xmlstream: fix race conditions on handlers
2021-01-28 17:54:40 +01:00
mathieui
0eed84d0b2
xmlstream: handle done tasks in wait_until
...
and handle other loops properly
2021-01-28 17:54:40 +01:00
mathieui
70b5081018
Merge branch 'xep-0382-spoiler-messages' into 'master'
...
XEP-0382: Spoiler Messages
See merge request poezio/slixmpp!100
2021-01-27 00:07:36 +01:00