Skip to content

ref: c2s_handle_bind hook #4356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Image for: Conversation
Copy link
Contributor

pouriya commented Feb 25, 2025

No description provided.

Copy link

coverage: 33.385% (-0.001%) from 33.386%
when pulling 051093f on pouriya:ref-new-hook-to-customize-resource-binding
into 6bd4399 on processone:master.

Copy link
Member

prefiks commented Mar 6, 2025

May i ask for what you need this? I don't see anything wrong with that, so i will merge it.

prefiks merged commit 66205cf into processone:master Mar 6, 2025
6 of 7 checks passed
Copy link
Contributor Author

pouriya commented Mar 7, 2025

I need to get device information (version, platform, push id, etc) from client and based on this information enable/disable some features before their first presence (being online) or simply prevent some versions from being online.
Since we can change client resource from server side, I collect this info from resource and remove them from it and give it back to the client (to prevent receiving large from attribute in stanzas).

I could receive this info using other xeps or by creating a new xep but it adds another new step to logins and maybe new client code to receive/respond to IQs. But with custom resource, the client only needs to construct the resource and handle resource binding error.

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