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:
lilia 2015-09-10 00:57:05 -07:00
parent 0ebdf08ceb
commit 04c8796bd3
2 changed files with 2 additions and 2 deletions

View file

@ -39201,7 +39201,7 @@ TextSecureServer = function () {
var password = textsecure.storage.get("password");
var params = 'login=%2B' + encodeURIComponent(user.substring(1)) + '&password=' + encodeURIComponent(password);
var url = url + URL_CALLS['push'] + '/?' + params;
return TextSecureWebSocket(url)
return TextSecureWebSocket(url, {reconnectTimeout: false});
}
self.getTempWebsocket = function() {

View file

@ -312,7 +312,7 @@ TextSecureServer = function () {
var password = textsecure.storage.get("password");
var params = 'login=%2B' + encodeURIComponent(user.substring(1)) + '&password=' + encodeURIComponent(password);
var url = url + URL_CALLS['push'] + '/?' + params;
return TextSecureWebSocket(url)
return TextSecureWebSocket(url, {reconnectTimeout: false});
}
self.getTempWebsocket = function() {