-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Description
Describe the bug
Web socket connections not working
Additional context
Previous code:
server.on('upgrade', function(req, socket, head) {
const subdomain = req.headers.host;
db.getPort(subdomain, appPort => {
if (appPort)
return proxy.ws(req, socket, { target: `http://127.0.0.1:${appPort}` });
return res.send('ERROR: ROUTE NOT FOUND');
});
});
server.listen(443);
Metadata
Metadata
Assignees
Labels
No labels