Skip to content

Conversation

@singpolyma
Copy link
Contributor

@singpolyma singpolyma commented Apr 29, 2025

This adds two new callbacks, one of which runs with a stanza id when a stanza sends and gets an sm ack from the server, and one which runs with a stanza id when a stanza fails and will not be retried.

Incomplete and presented for discussion of the design.

An id element has been added to the send/sm queue in order to facilitate passing this to the callback without re-parsing the stanza.

This is also added to the sm serialization, though we could parse the stanza on restore to avoid this I suppose.

@singpolyma singpolyma force-pushed the sm-ack-fail-callbacks branch from 587e2ee to 2940bef Compare April 29, 2025 20:16
This adds two new callbacks, one of which runs with a stanza id when a
stanza sends and gets an sm ack from the server, and one which runs with
a stanza id when a stanza fails and will not be retried.

Incomplete and presented for discussion of the design.

An id element has been added to the send/sm queue in order to facilitate
passing this to the callback without re-parsing the stanza.

This is also added to the sm serialization, though we could parse the
stanza on restore to avoid this I suppose.

TODO: fail everything on stream end
@singpolyma singpolyma force-pushed the sm-ack-fail-callbacks branch from a936b56 to f60571d Compare April 30, 2025 00:27
@singpolyma
Copy link
Contributor Author

Hmm, we probably also want stanza type at least as well (iq, message, presence) since for my implementation at least I can ignore iq acks usually and just want message ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant