Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

freedom-social-xmpp

Package Overview
Dependencies
Maintainers
6
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

freedom-social-xmpp - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

22

build/socialprovider.js

@@ -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 @@ };

2

package.json
{
"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 @@ };

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc