* AUTHFAIL state is now handled
* Strophejs updated to latest git
var roster = new Array();
function log(msg) {
var roster = new Array();
function log(msg) {
- var entry = $('<div></div>').append(Strophe.xmlTextNode(msg));
+ var entry = $('<div></div>').append(document.createTextNode(msg));
$('#log').append(entry);
}
$('#log').append(entry);
}
function onConnect(status) {
if (status == Strophe.Status.CONNECTING) {
log('Strophe is connecting.');
function onConnect(status) {
if (status == Strophe.Status.CONNECTING) {
log('Strophe is connecting.');
} else if (status == Strophe.Status.CONNFAIL) {
log('Strophe failed to connect.');
showConnect();
} else if (status == Strophe.Status.CONNFAIL) {
log('Strophe failed to connect.');
showConnect();
} else if (status == Strophe.Status.DISCONNECTED) {
log('Strophe is disconnected.');
showConnect();
} else if (status == Strophe.Status.DISCONNECTED) {
log('Strophe is disconnected.');
showConnect();
+ } else if (status == Strophe.Status.AUTHFAIL) {
+ log('Authentication failed.');
+ connection.disconnect();
+ showConnect();
} else if (status == Strophe.Status.CONNECTED) {
log('Strophe is connected.');
getOwnInfo();
} else if (status == Strophe.Status.CONNECTED) {
log('Strophe is connected.');
getOwnInfo();
-Subproject commit f31e73fd12ca779b6cd93043496eda001e3b1aee
+Subproject commit 76af4af579d71ded60a18e84ea99333b98c8e2d2