Currently in the process of setting up an XMPP client using Stanza.js https://github.com/legastero/stanza
A functional server is able to accept connections from a Gajim client, however, issues arise when attempting to connect through the Stanza.js client.connect method. The server establishes a websocket connection, yet no authentication or session initiation events are detected.
The server logs do not indicate any attempts at plaintext password authentication.
How can I access and view the stanza logs for troubleshooting?
import * as XMPP from 'stanza';
const config = { credentials: {jid: '[jid]', password: '[password]'}, transports: {websocket: '[socketurl]', bosh: false} };
const client = XMPP.createClient(config)
client.on('raw:*', (data) => {
console.log('data', data)
})
client.connect();
The onconnect event does trigger, but it seems to be the only one firing. Is there a manual way to initiate authentication that may not be outlined in the documentation?