Skip to content
Discussion options

You must be logged in to vote

Is it possible to enable the ejabberd server to take my stanza-id instead of generating a new one on the server side?

That's currently not supported by the protocol. One issue would be that the server cannot blindly trust client-generated IDs to be unique (how to handle the case where multiple clients use the same IDs, or a single client reuses IDs, and so on).

A pragmatic solution is to just query the history the last known stanza ID, and then de-duplicate known messages (maybe simply based on your client-generated message ID).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Musacca
Comment options

@weiss
Comment options

weiss Feb 15, 2023
Collaborator

Answer selected by badlop
@Musacca
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants