|
|
@ -95,6 +95,14 @@ Client.prototype._debug = function(txt) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Client.prototype.message = function(to, message) {
|
|
|
|
|
|
|
|
this.xmpp.send(new xmpp.Element('message', {
|
|
|
|
|
|
|
|
to: to,
|
|
|
|
|
|
|
|
type: 'chat'}).
|
|
|
|
|
|
|
|
c('body').
|
|
|
|
|
|
|
|
t(message));
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Client.prototype.iq = function(iq, callback) {
|
|
|
|
Client.prototype.iq = function(iq, callback) {
|
|
|
|
var n = this._iq++;
|
|
|
|
var n = this._iq++;
|
|
|
|
this._iqCallback[n] = callback;
|
|
|
|
this._iqCallback[n] = callback;
|
|
|
|