I'm trying to connect with node to a local openfire server using the node-xmpp-client package.
npm install node-xmpp-client
I've configurated the server and i've created a user test1 with password: 'password' and email: '[email protected]'
This is my client.js file
var request = require('request');
var util = require('util');
var Client = require('node-xmpp-client');
var client = new Client({
jid: //?
password: "password",
});
client.on('online', function(){
console.log('online');
});
I don't really get what i should insert in the jid variable.
Someone has faced a similar situation? Thanks in advance for all the help