Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
client.disco.addFeature(NS_EME_0);
client.disco.addFeature(NS_FORWARD_0);
client.disco.addFeature(NS_HASHES_2);
client.disco.addFeature(NS_HASHES_1);
client.disco.addFeature(NS_IDLE_1);
client.disco.addFeature(NS_JSON_0);
client.disco.addFeature(NS_OOB);
client.disco.addFeature(NS_PSA);
client.disco.addFeature(NS_REFERENCE_0);
client.disco.addFeature(NS_SHIM);
client.disco.addFeature(NS_DATAFORM);
client.disco.addFeature(NS_DATAFORM_MEDIA);
client.disco.addFeature(NS_DATAFORM_VALIDATION);
client.disco.addFeature(NS_DATAFORM_LAYOUT);
const names = hashes.getHashes();
for (const name of names) {
client.disco.addFeature(NS_HASH_NAME(name));
}
client.disco.addFeature(NS_TIME);
client.disco.addFeature(NS_VERSION);
client.on('iq:get:softwareVersion', iq => {
return client.sendIQResult(iq, {
softwareVersion: client.config.softwareVersion || {
name: 'stanzajs.org',
version: VERSION
}
});
});