From 7404dcd40c76206788c1d8f6e22f47db9be561f9 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Thu, 25 Aug 2022 21:39:10 -0700 Subject: [PATCH] Web socket fix for web relay (#4451) --- apprelays.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apprelays.js b/apprelays.js index 56ead390..a48cfa09 100644 --- a/apprelays.js +++ b/apprelays.js @@ -311,7 +311,7 @@ module.exports.CreateWebRelay = function (parent, db, args, domain) { obj.ws._socket.pause(); // If the response stream is closed, close this tunnel right away - res.socket.on('end', function () { obj.close(); }); + obj.ws._socket.on('end', function () { obj.close(); }); // Remove the trailing '/.websocket' if needed var baseurl = req.url, i = req.url.indexOf('?');