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,4 +1,5 @@
|
|||
const express = require('express');
|
||||
const registry = require('./backend-registry');
|
||||
|
||||
const app = express();
|
||||
|
||||
|
|
@ -16,7 +17,7 @@ app.get('/health', (req, res) => {
|
|||
res.json({
|
||||
status: 'ok',
|
||||
uptime: process.uptime(),
|
||||
connectedBackends: 0,
|
||||
connectedBackends: registry.count(),
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue