Make HUBOT_XMPP_HOST optional: when unset, pass the bare JID domain as the
service so @xmpp/client resolves the host via DNS SRV (XEP-0368) and the
XEP-0156 well-known file. HUBOT_XMPP_PORT now only applies together with HOST.
xmpp.js does not set TLS SNI, and @xmpp/resolve connects to raw IPs from SRV/A
lookups, so direct TLS failed certificate verification
(ERR_TLS_CERT_ALTNAME_INVALID) and silently fell back to STARTTLS. Wrap the
transport socketParameters to set servername to the JID domain (XEP-0368 §3
rule 6), mirroring xmppjs/xmpp.js#1128 and the sockethub workaround. Direct TLS
now succeeds on the first try.
Port the old node-xmpp-client based adapter (xmppjs/hubot-xmpp 0.3.0) to
hubot 14 (ESM) using @xmpp/client 0.14:
- default `{ use }` entrypoint matching hubot 14's adapter loader
- MUC join/leave, groupchat and private chat handling, presence tracking
(enter/leave, role, private JID mapping)
- keepalive pings; reconnection via @xmpp/client's built-in reconnect
- XHTML payload support via the @xmpp/xml parser
- node:test suite (45 tests)
Drops legacy options no longer applicable to @xmpp/client:
HUBOT_XMPP_LEGACYSSL, _PREFERRED_SASL_MECHANISM, _DISALLOW_TLS,
_RECONNECT_TRY, _RECONNECT_WAIT and HUBOT_XMPP_UUID_ON_JOIN.