mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 04:09:49 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user