mcp-hub-002: WebSocket backend registration and health tracking

This commit is contained in:
Agent 2026-03-12 16:46:30 +00:00
parent 60d92af13b
commit a93bcfffa7
4 changed files with 138 additions and 2 deletions

View file

@ -1,6 +1,11 @@
const http = require('http');
const app = require('./server');
const config = require('./config');
const setupWsServer = require('./ws-server');
app.listen(config.PORT, () => {
const httpServer = http.createServer(app);
setupWsServer(httpServer);
httpServer.listen(config.PORT, () => {
console.log(`MCP relay hub listening on port ${config.PORT}`);
});