buildDiscoInfoQueryStanza function
Implementation
Stanza buildDiscoInfoQueryStanza(JID entity, String? node) {
return Stanza.iq(
to: entity.toString(),
type: 'get',
children: [
XMLNode.xmlns(
tag: 'query',
xmlns: discoInfoXmlns,
attributes: {
if (node != null) 'node': node,
},
),
],
);
}