prose-im / prose-app-web

Prose Web application. XMPP client for team messaging.
https://prose.org/downloads
Mozilla Public License 2.0
23 stars 2 forks source link

Support discovering the websocket address automatically #58

Closed nesium closed 6 months ago

nesium commented 7 months ago

While I'm at it…

As a user I want to use the Prose web app to connect to my accounts on various different servers. At the moment however the websocket address is hard-coded in the config/*.json files.

To mitigate that we should implement XEP-0156: Discovering Alternative XMPP Connection Methods.

Here's an article that outlines a few different methods to support it on the server: https://community.hetzner.com/tutorials/prosody-debian9#xep-0156-discovering-alternative-xmpp-connection-methods-http

valeriansaliou commented 7 months ago

I've added the following files on prose.org:

CORS OK, and HTTP Content-Type OK. Let me know if this works for you.

nesium commented 7 months ago

Thanks! Could you implement this as part of the BrokerConnectionStrophe? I don't think this needs to go into the core as it's very web-specific, or at least completely "connection" specific.

valeriansaliou commented 6 months ago

Sure, will do this weekend!