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:
parent
2b563212b4
commit
56b6375f97
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue