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
This commit is contained in:
lilia 2015-07-28 14:59:49 -07:00
parent 2b563212b4
commit 56b6375f97
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);