Severity: P1 - HIGH
Component: Backend - WebSocket / Frontend - Multiple Pages
Endpoint: /api/v1/ws/enterprise
Issue
WebSocket connection consistently fails with 404 or connection refused. Affects multiple UI pages.
Impact
Affected Pages
- Installed Plugins (
/admin/plugins/installed)
- Users management
- Other admin pages using
useEnterpriseWebSocket hook
Root Cause
One of:
- Endpoint not implemented in backend
- Endpoint requires different authentication
- Wrong endpoint path
- WebSocket upgrade fails
Investigation Required
- Check if
/api/v1/ws/enterprise endpoint exists in backend
- Check if endpoint is registered in routes
- Check authentication token passing
- Check WebSocket upgrade headers
Files to Check
api/internal/handlers/websocket/enterprise.go - Does this exist?
api/cmd/main.go - Is route registered?
ui/src/hooks/useEnterpriseWebSocket.ts - Correct endpoint URL?
Fix Options
Option A: Implement Enterprise WebSocket (for v2.1)
func EnterpriseWebSocketHandler(c *gin.Context) {
// Upgrade connection
// Handle enterprise-specific real-time events
// Broadcast updates to connected clients
}
Option B: Use Different Endpoint
If wrong URL, update hook to use correct endpoint
Option C: Make WebSocket Optional (RECOMMENDED for v2.0-beta.1)
Testing
Effort: 2-4 hours (graceful degradation) or 8-16 hours (full implementation)
Source: .claude/reports/UI_BUG_FIXES_REQUIRED.md
Severity: P1 - HIGH
Component: Backend - WebSocket / Frontend - Multiple Pages
Endpoint:
/api/v1/ws/enterpriseIssue
WebSocket connection consistently fails with 404 or connection refused. Affects multiple UI pages.
Impact
Affected Pages
/admin/plugins/installed)useEnterpriseWebSockethookRoot Cause
One of:
Investigation Required
/api/v1/ws/enterpriseendpoint exists in backendFiles to Check
api/internal/handlers/websocket/enterprise.go- Does this exist?api/cmd/main.go- Is route registered?ui/src/hooks/useEnterpriseWebSocket.ts- Correct endpoint URL?Fix Options
Option A: Implement Enterprise WebSocket (for v2.1)
Option B: Use Different Endpoint
If wrong URL, update hook to use correct endpoint
Option C: Make WebSocket Optional (RECOMMENDED for v2.0-beta.1)
Testing
Effort: 2-4 hours (graceful degradation) or 8-16 hours (full implementation)
Source:
.claude/reports/UI_BUG_FIXES_REQUIRED.md