Web socket fix for web relay (#4451)

This commit is contained in:
Ylian Saint-Hilaire 2022-08-25 21:39:10 -07:00
parent 4fe394226c
commit 7404dcd40c
1 changed files with 1 additions and 1 deletions

View File

@ -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('?');