From 56b6375f974399b2d09b43c66a29ec2cc816a793 Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 28 Jul 2015 14:59:49 -0700 Subject: [PATCH] Use new provisioning socket keepalive path This new endpoint should always issue a response to a provisioning socket so if we don't receive one we should assume the connection has been lost. Closes #318 --- js/libtextsecure.js | 2 +- libtextsecure/account_manager.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index d3d2360a5..1c95e48ac 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -39388,7 +39388,7 @@ TextSecureServer = function () { return new Promise(function(resolve) { var socket = TextSecureServer.getTempWebsocket(); var wsr = new WebSocketResource(socket, { - keepalive: { path: '/v1/keepalive' }, + keepalive: { path: '/v1/keepalive/provisioning' }, handleRequest: function(request) { if (request.path == "/v1/address" && request.verb == "PUT") { var proto = textsecure.protobuf.ProvisioningUuid.decode(request.body); diff --git a/libtextsecure/account_manager.js b/libtextsecure/account_manager.js index b2342fa29..082551501 100644 --- a/libtextsecure/account_manager.js +++ b/libtextsecure/account_manager.js @@ -45,7 +45,7 @@ return new Promise(function(resolve) { var socket = TextSecureServer.getTempWebsocket(); var wsr = new WebSocketResource(socket, { - keepalive: { path: '/v1/keepalive' }, + keepalive: { path: '/v1/keepalive/provisioning' }, handleRequest: function(request) { if (request.path == "/v1/address" && request.verb == "PUT") { var proto = textsecure.protobuf.ProvisioningUuid.decode(request.body);