Hello everyone,
My problem is this :
When I use XIFF classes to connect to the 2enwire.net IM server all the conversation stops after the “connect” event.
I have an outgoing event (requesting to open connection), I receive permission (connection.active = true) but after that all “outgoing” packets don’'t receive any answer.
I have the same code connecting to a local wildfire server and it works much better. I get to the “login” event in a snap.
Here’'s how the code looks like :
connection = new XMPPConnection();
connection.username = user;
connection.password = pass;
connection.server = “2entwire.net”; // for local testing I put my IP here
connection.port = 5332;
globalHandler = new Object();
globalHandler.handleEvent = function(eventObj) {
trace(eventObj.type)
}
connection.addEventListener(“message”, globalHandler);
connection.addEventListener(“login”, globalHandler);
connection.addEventListener(“connection”, globalHandler);
connection.addEventListener(“disconnection”, globalHandler);
connection.addEventListener(“presence”, globalHandler);
connection.addEventListener(“error”, globalHandler);
connection.addEventListener(“changePasswordSuccess”, globalHandler);
connection.addEventListener(“outgoingData”, globalHandler);
connection.addEventListener(“incomingData”, globalHandler);
connection.addEventListener(“registrationSuccess”, globalHandler);
connection.addEventListener(“registrationFields”, globalHandler);
connection.connect(“flash”); //this one returns true
The trace ouput for the 2entwire is :
outgoingData
connection
The trace output for the local wildfire is :
outgoingData
connection
incomingData
outgoingData
incomingData
outgoingData
incomingData
login
Any ideas ?
Do you know any other wildfire server addresses I can try ?
Thanks.