@xmpp/client-core
Advanced tools
Comparing version 0.0.1 to 0.0.2
24
index.js
@@ -18,6 +18,7 @@ const Connection = require('@xmpp/connection') | ||
} | ||
super.send(element, ...args) | ||
return super.send(element, ...args) | ||
} | ||
connect (uri) { | ||
this.connectOptions = uri | ||
let params | ||
@@ -36,3 +37,3 @@ const Transport = this.transports.find(Transport => { | ||
'feature', 'element', 'stanza', 'send', | ||
'nonza', 'fragment', 'online', 'ready', | ||
'nonza', 'fragment', 'online', | ||
'authenticated', 'authenticate' | ||
@@ -43,13 +44,18 @@ ].forEach(e => { | ||
return sock.connect(uri) | ||
.then(() => { | ||
this.uri = uri | ||
return params | ||
}) | ||
return sock.connect(params) | ||
} | ||
open (...args) { | ||
return this.socket.open(...args) | ||
write (...args) { | ||
return this.socket.write(...args) | ||
} | ||
open (options) { | ||
this.openOptions = options | ||
return this.socket.open(options) | ||
} | ||
restart (...args) { | ||
return this.socket.restart(...args) | ||
} | ||
close (...args) { | ||
@@ -56,0 +62,0 @@ return this.socket.close(...args) |
@@ -6,7 +6,7 @@ { | ||
"bugs": "http://github.com/node-xmpp/node-xmpp/issues", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"license": "ISC", | ||
"dependencies": { | ||
"@xmpp/connection": "^0.0.5" | ||
"@xmpp/connection": "^0.0.6" | ||
} | ||
} |
2078
63
+ Added@xmpp/connection@0.0.6(transitive)
+ Added@xmpp/jid@0.0.2(transitive)
+ Added@xmpp/streamparser@0.0.6(transitive)
- Removed@xmpp/connection@0.0.5(transitive)
- Removed@xmpp/jid@0.0.1(transitive)
- Removed@xmpp/streamparser@0.0.5(transitive)
Updated@xmpp/connection@^0.0.6