Web socket fix for web relay (#4451)
Ylian Saint-Hilaire committed
Aug 25, 2022 at 21:39 UTC
7404dcd40c76206788c1d8f6e22f47db9be561f9
1 file changed
+1
-1
apprelays.js
+1
-1
@@ -311,7 +311,7 @@ module.exports.CreateWebRelay = function (parent, db, args, domain) {
311
obj.ws._socket.pause();
312
313
// If the response stream is closed, close this tunnel right away
314
- res.socket.on('end', function () { obj.close(); });
314
+ obj.ws._socket.on('end', function () { obj.close(); });
315
316
// Remove the trailing '/.websocket' if needed
317
var baseurl = req.url, i = req.url.indexOf('?');