@urbit/http-api: disable subscription resume

This commit is contained in:
Liam Fitzgerald 2021-06-25 09:04:55 +10:00
parent 0cdbebbd66
commit b4ed8fe179
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -94,7 +94,7 @@ export class Urbit {
credentials: 'include', credentials: 'include',
accept: '*', accept: '*',
headers, headers,
signal: this.abort signal: this.abort.signal
}; };
} }
@ -240,7 +240,8 @@ export class Urbit {
} }
}, },
onerror: (error) => { onerror: (error) => {
if(this.errorCount++ < 5) { // Channel resume currently broken in eyre
if(false && this.errorCount++ < 5) {
console.log(this.errorCount); console.log(this.errorCount);
this.onRetry && this.onRetry(); this.onRetry && this.onRetry();
return Math.pow(2, this.errorCount - 1) * 750; return Math.pow(2, this.errorCount - 1) * 750;