fix: wss endpoint

This commit is contained in:
Rohit Rajan
2025-11-30 22:21:36 +05:30
parent bbfa78ea9e
commit ace57d8ee7

View File

@@ -45,7 +45,7 @@ async function start(): Promise<void> {
// Health check HTTP server // Health check HTTP server
const healthServer = http.createServer((req, res) => { const healthServer = http.createServer((req, res) => {
if (req.url === '/health') { if (req.url === '/health') {
const wsEndpoint = browserServer?.wsEndpoint(); const wsEndpoint = browserServer?.wsEndpoint().replace('localhost', BROWSER_WS_HOST) || '';
res.writeHead(200, { 'Content-Type': 'application/json' }); res.writeHead(200, { 'Content-Type': 'application/json' });
res.end(JSON.stringify({ res.end(JSON.stringify({
status: 'healthy', status: 'healthy',