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
pull/749/head
lilia 10 years ago
parent 0ebdf08ceb
commit 04c8796bd3

@ -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() {

@ -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() {

Loading…
Cancel
Save