parent
47e00ae005
commit
66420962f7
@ -750,8 +750,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.registerPingHandler = function () {
|
this.registerPingHandler = function () {
|
||||||
if (this.ping_interval > 0) {
|
|
||||||
this.registerPongHandler();
|
this.registerPongHandler();
|
||||||
|
if (this.ping_interval > 0) {
|
||||||
this.connection.addHandler(function () {
|
this.connection.addHandler(function () {
|
||||||
/* Handler on each stanza, saves the received date
|
/* Handler on each stanza, saves the received date
|
||||||
* in order to ping only when needed.
|
* in order to ping only when needed.
|
||||||
|
Loading…
Reference in New Issue
Block a user