- Scaffold Angular 17 frontend with standalone components - Add @microsoft/signalr package dependency - Create AgentStatusService connecting to /hub endpoint - Auto-reconnect with progressive delays - Listens for AgentStatusChanged and BroadcastMessage - Logs all updates to console - Exposes statusUpdates$ and connected$ observables - onStatusUpdate() alias matching CUB-58 spec - Create AgentStatusUpdate interface (agentId, status, lastSeenAt) - Add APP_INITIALIZER provider to start connection on app boot - Register initializer in app.config.ts - Update .gitignore for frontend build artifacts
21 lines
470 B
JSON
21 lines
470 B
JSON
{
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "ng serve",
|
|
"type": "chrome",
|
|
"request": "launch",
|
|
"preLaunchTask": "npm: start",
|
|
"url": "http://localhost:4200/"
|
|
},
|
|
{
|
|
"name": "ng test",
|
|
"type": "chrome",
|
|
"request": "launch",
|
|
"preLaunchTask": "npm: test",
|
|
"url": "http://localhost:9876/debug.html"
|
|
}
|
|
]
|
|
}
|