Skip to content
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

Request to Implement XEP-0156: Discovering Alternative XMPP Connection Methods #765

Open
jinyu2022 opened this issue Nov 30, 2024 · 1 comment

Comments

@jinyu2022
Copy link

I would like to request the implementation of XEP-0156, which specifies a method for discovering alternative XMPP connection methods through the use of the host-meta file. This feature would greatly enhance the flexibility and usability of XMPP clients by allowing them to automatically discover available connection methods.

To implement this feature, we can use the following approach:

fetch(`https://${domain}/.well-known/host-meta`)
      .then((res) => res.text())
.......

Implementing this feature will:

  • Improve the user experience by allowing automatic discovery of connection methods.
  • Enhance interoperability with various XMPP servers that support alternative connection methods.
  • Reduce the need for manual configuration by users.
@jinyu2022
Copy link
Author

Currently, the plugin can achieve this functionality, but Strophe.Connection explicitly requires the service parameter to be a string. Even with the XEP-0156 plugin loaded, the IDE still mandates that this parameter be passed in as a string. We need better IDE type assertion support to allow for more flexibility in handling parameter types when using this plugin, rather than enforcing a strict requirement for a string.
Please help. Please let me know what I should do.

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

No branches or pull requests

1 participant