|
|
|
@ -38415,18 +38415,17 @@ window.axolotl.sessions = {
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
;(function(){
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* var socket = textsecure.websocket(url);
|
|
|
|
|
* var socket = TextSecureWebSocket(url);
|
|
|
|
|
*
|
|
|
|
|
* Returns an adamantium-reinforced super socket, capable of sending
|
|
|
|
|
* app-level keep alives and automatically reconnecting.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
window.textsecure.websocket = function (url) {
|
|
|
|
|
TextSecureWebSocket = function (url) {
|
|
|
|
|
'use strict';
|
|
|
|
|
var keepAliveTimer;
|
|
|
|
|
var reconnectSemaphore = 0;
|
|
|
|
|
var reconnectTimeout = 1000;
|
|
|
|
@ -38499,7 +38498,6 @@ window.axolotl.sessions = {
|
|
|
|
|
connect();
|
|
|
|
|
return socketWrapper;
|
|
|
|
|
};
|
|
|
|
|
})();
|
|
|
|
|
|
|
|
|
|
/* vim: ts=4:sw=4:expandtab
|
|
|
|
|
*
|
|
|
|
@ -39361,7 +39359,7 @@ window.textsecure.api = function () {
|
|
|
|
|
var password = textsecure.storage.get("password");
|
|
|
|
|
var params = 'login=%2B' + encodeURIComponent(user.substring(1)) + '&password=' + encodeURIComponent(password);
|
|
|
|
|
}
|
|
|
|
|
return window.textsecure.websocket(URL+params)
|
|
|
|
|
return TextSecureWebSocket(URL+params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
self.getMessageWebsocket = function() {
|
|
|
|
|