chapter 3, not responed
Hi.
I'm a beginner in XMPP.
I have a problem.
It is that I had not recieved pong.
My code is the same to your code.
Console's log has not a message including error, warning.
$(document).bind('connected', function(){
Hello.log("Connection established."); -> this is correct, but
-------------------stop. I can't go next step.
Hello.connection.addHandler(Hello.handle_pong,null ,"iq",null,"ping");
var domain = Srophe.getDomainFromJid(Hello.connection.jid);
Hello.log(domain);
Hello.send_ping(domain);
});
Can you help me?
|