You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, you will have to be more precise with your issue.
How does the XML message look like?
Are these two lines actually after another this in the code? Then there is no reason why onMessage should be called.
I am getting message in onMessage function and this function like this..
function onMessage(msg) {
var to = msg.getAttribute('to');
var from = msg.getAttribute('from');
var type = msg.getAttribute('type');
var elems = msg.getElementsByTagName('body');
if (type == "chat" && elems.length > 0) {
var body = elems[0];
var nmsg = Strophe.getText(body);
}
}
Hi,
I am getting XML request but not getting message in addHandler message.
connection.addHandler(onMessage, null, 'message', null, null, null);
connection.send($pres().tree());
Message not come in this function function.
helloBut i can see response from /http-bind/ like
Please help me,
Thanks.
The text was updated successfully, but these errors were encountered: