|
@@ -30,6 +30,16 @@ export class Connection extends Strophe.Connection {
|
|
this.debouncedReconnect = debounce(this.reconnect, 3000);
|
|
this.debouncedReconnect = debounce(this.reconnect, 3000);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /** @param {Element} body */
|
|
|
|
+ xmlInput (body) {
|
|
|
|
+ log.debug(body.outerHTML, 'color: darkgoldenrod');
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /** @param {Element} body */
|
|
|
|
+ xmlOutput (body) {
|
|
|
|
+ log.debug(body.outerHTML, 'color: darkcyan');
|
|
|
|
+ }
|
|
|
|
+
|
|
async bind () {
|
|
async bind () {
|
|
const { api } = _converse;
|
|
const { api } = _converse;
|
|
/**
|
|
/**
|
|
@@ -41,7 +51,6 @@ export class Connection extends Strophe.Connection {
|
|
super.bind();
|
|
super.bind();
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
async onDomainDiscovered (response) {
|
|
async onDomainDiscovered (response) {
|
|
const { api } = _converse;
|
|
const { api } = _converse;
|
|
const text = await response.text();
|
|
const text = await response.text();
|