mcp-hub-002: WebSocket backend registration and health tracking
This commit is contained in:
parent
60d92af13b
commit
a93bcfffa7
4 changed files with 138 additions and 2 deletions
|
|
@ -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}`);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue