Trigger empty event on keepalive timeout (#1466)
This commit is contained in:
parent
420cfc46be
commit
c832324cb9
2 changed files with 6 additions and 0 deletions
|
@ -38393,6 +38393,9 @@ MessageReceiver.prototype.extend({
|
||||||
if (ev.code === 3000) {
|
if (ev.code === 3000) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (ev.code === 3001) {
|
||||||
|
this.onEmpty();
|
||||||
|
}
|
||||||
// possible 403 or network issue. Make an request to confirm
|
// possible 403 or network issue. Make an request to confirm
|
||||||
return this.server.getDevices(this.number)
|
return this.server.getDevices(this.number)
|
||||||
.then(this.connect.bind(this)) // No HTTP error? Reconnect
|
.then(this.connect.bind(this)) // No HTTP error? Reconnect
|
||||||
|
|
|
@ -57,6 +57,9 @@ MessageReceiver.prototype.extend({
|
||||||
if (ev.code === 3000) {
|
if (ev.code === 3000) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (ev.code === 3001) {
|
||||||
|
this.onEmpty();
|
||||||
|
}
|
||||||
// possible 403 or network issue. Make an request to confirm
|
// possible 403 or network issue. Make an request to confirm
|
||||||
return this.server.getDevices(this.number)
|
return this.server.getDevices(this.number)
|
||||||
.then(this.connect.bind(this)) // No HTTP error? Reconnect
|
.then(this.connect.bind(this)) // No HTTP error? Reconnect
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue