Disable socket level reconnect
This is now handled at a higher level by the message receiver with the aid of http requests for diagnosing the disconnect. // FREEBIE
This commit is contained in:
parent
0ebdf08ceb
commit
04c8796bd3
2 changed files with 2 additions and 2 deletions
|
@ -39201,7 +39201,7 @@ TextSecureServer = function () {
|
||||||
var password = textsecure.storage.get("password");
|
var password = textsecure.storage.get("password");
|
||||||
var params = 'login=%2B' + encodeURIComponent(user.substring(1)) + '&password=' + encodeURIComponent(password);
|
var params = 'login=%2B' + encodeURIComponent(user.substring(1)) + '&password=' + encodeURIComponent(password);
|
||||||
var url = url + URL_CALLS['push'] + '/?' + params;
|
var url = url + URL_CALLS['push'] + '/?' + params;
|
||||||
return TextSecureWebSocket(url)
|
return TextSecureWebSocket(url, {reconnectTimeout: false});
|
||||||
}
|
}
|
||||||
|
|
||||||
self.getTempWebsocket = function() {
|
self.getTempWebsocket = function() {
|
||||||
|
|
|
@ -312,7 +312,7 @@ TextSecureServer = function () {
|
||||||
var password = textsecure.storage.get("password");
|
var password = textsecure.storage.get("password");
|
||||||
var params = 'login=%2B' + encodeURIComponent(user.substring(1)) + '&password=' + encodeURIComponent(password);
|
var params = 'login=%2B' + encodeURIComponent(user.substring(1)) + '&password=' + encodeURIComponent(password);
|
||||||
var url = url + URL_CALLS['push'] + '/?' + params;
|
var url = url + URL_CALLS['push'] + '/?' + params;
|
||||||
return TextSecureWebSocket(url)
|
return TextSecureWebSocket(url, {reconnectTimeout: false});
|
||||||
}
|
}
|
||||||
|
|
||||||
self.getTempWebsocket = function() {
|
self.getTempWebsocket = function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue