strophe / strophejs

Strophe.js is an XMPP library for JavaScript
http://strophe.im/strophejs
MIT License
1.46k stars 363 forks source link

Report the "from" attribute of the opening <open /> tag #525

Open sloonz opened 2 years ago

sloonz commented 2 years ago

XEP-0115 states :

When a connected client or peer server sends a service discovery information request to determine the entity capabilities of a server that advertises capabilities via the stream feature, the requesting entity MUST send the disco#info request to the server's JID as provided in the 'from' attribute of the response stream header (the 'from' attribute was recommended by RFC 3920 [22] and is required by RFC 6120 [11]).

However, strophe.js just silently discards the "from" attribute, so I can’t reuse it for the disco#info request.

Neustradamus commented 1 year ago

@jcbrand: Have you seen this ticket?