freedom-social-xmpp
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -127,3 +127,4 @@ /*globals freedom:true,setTimeout,console,VCardStore,global */ | ||
disallowTLS: true, | ||
preferred: 'PLAIN' //TODO: why doesn't DIGEST-MD5 work? | ||
preferred: 'PLAIN', //TODO: why doesn't DIGEST-MD5 work? | ||
reconnect: true // Automatically try reconnecting if disconnected. | ||
}; | ||
@@ -149,3 +150,3 @@ for (key in this.credentials) { | ||
this.client.addListener('error', function(e) { | ||
console.error(e.stack); | ||
console.error('client.error: ', e.stack); | ||
continuation(undefined, { | ||
@@ -162,2 +163,19 @@ errcode: this.ERRCODE.LOGIN_FAILEDCONNECTION.errcode, | ||
}.bind(this)); | ||
this.client.addListener('offline', function(e) { | ||
// TODO: tell users of the API that this client is now offline, | ||
// either by emitting an onClientState with OFFLINE using: | ||
// this.vCardStore.updateProperty(this.id, 'status', 'OFFLINE'); | ||
// or emit a new type of event, or invoke this.logout directly to | ||
// clean things up. | ||
console.error('received unhandled offline event', e); | ||
}); | ||
this.client.addListener('close', function(e) { | ||
// This may indicate a broken connection to XMPP. | ||
// TODO: handle this. | ||
console.error('received unhandled close event', e); | ||
}); | ||
this.client.addListener('end', function(e) { | ||
// TODO: figure out when this is fired and handle this. | ||
console.error('received unhandled end event', e); | ||
}); | ||
this.client.addListener('stanza', this.onMessage.bind(this)); | ||
@@ -164,0 +182,0 @@ }; |
@@ -127,3 +127,4 @@ /*globals freedom:true,setTimeout,console,VCardStore,global */ | ||
disallowTLS: true, | ||
preferred: 'PLAIN' //TODO: why doesn't DIGEST-MD5 work? | ||
preferred: 'PLAIN', //TODO: why doesn't DIGEST-MD5 work? | ||
reconnect: true // Automatically try reconnecting if disconnected. | ||
}; | ||
@@ -149,3 +150,3 @@ for (key in this.credentials) { | ||
this.client.addListener('error', function(e) { | ||
console.error(e.stack); | ||
console.error('client.error: ', e.stack); | ||
continuation(undefined, { | ||
@@ -162,2 +163,19 @@ errcode: this.ERRCODE.LOGIN_FAILEDCONNECTION.errcode, | ||
}.bind(this)); | ||
this.client.addListener('offline', function(e) { | ||
// TODO: tell users of the API that this client is now offline, | ||
// either by emitting an onClientState with OFFLINE using: | ||
// this.vCardStore.updateProperty(this.id, 'status', 'OFFLINE'); | ||
// or emit a new type of event, or invoke this.logout directly to | ||
// clean things up. | ||
console.error('received unhandled offline event', e); | ||
}); | ||
this.client.addListener('close', function(e) { | ||
// This may indicate a broken connection to XMPP. | ||
// TODO: handle this. | ||
console.error('received unhandled close event', e); | ||
}); | ||
this.client.addListener('end', function(e) { | ||
// TODO: figure out when this is fired and handle this. | ||
console.error('received unhandled end event', e); | ||
}); | ||
this.client.addListener('stanza', this.onMessage.bind(this)); | ||
@@ -164,0 +182,0 @@ }; |
{ | ||
"name": "freedom-social-xmpp", | ||
"description": "XMPP Social provider for freedomjs", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"homepage": "http://freedomjs.org", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -127,3 +127,4 @@ /*globals freedom:true,setTimeout,console,VCardStore,global */ | ||
disallowTLS: true, | ||
preferred: 'PLAIN' //TODO: why doesn't DIGEST-MD5 work? | ||
preferred: 'PLAIN', //TODO: why doesn't DIGEST-MD5 work? | ||
reconnect: true // Automatically try reconnecting if disconnected. | ||
}; | ||
@@ -149,3 +150,3 @@ for (key in this.credentials) { | ||
this.client.addListener('error', function(e) { | ||
console.error(e.stack); | ||
console.error('client.error: ', e.stack); | ||
continuation(undefined, { | ||
@@ -162,2 +163,19 @@ errcode: this.ERRCODE.LOGIN_FAILEDCONNECTION.errcode, | ||
}.bind(this)); | ||
this.client.addListener('offline', function(e) { | ||
// TODO: tell users of the API that this client is now offline, | ||
// either by emitting an onClientState with OFFLINE using: | ||
// this.vCardStore.updateProperty(this.id, 'status', 'OFFLINE'); | ||
// or emit a new type of event, or invoke this.logout directly to | ||
// clean things up. | ||
console.error('received unhandled offline event', e); | ||
}); | ||
this.client.addListener('close', function(e) { | ||
// This may indicate a broken connection to XMPP. | ||
// TODO: handle this. | ||
console.error('received unhandled close event', e); | ||
}); | ||
this.client.addListener('end', function(e) { | ||
// TODO: figure out when this is fired and handle this. | ||
console.error('received unhandled end event', e); | ||
}); | ||
this.client.addListener('stanza', this.onMessage.bind(this)); | ||
@@ -164,0 +182,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
938847
26900