Skip to content

[P1] Enterprise WebSocket Endpoint Failures (/api/v1/ws/enterprise) #127

@JoshuaAFerguson

Description

@JoshuaAFerguson

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

  1. Check if /api/v1/ws/enterprise endpoint exists in backend
  2. Check if endpoint is registered in routes
  3. Check authentication token passing
  4. 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

  • Pages load without WebSocket
  • "Disconnected" indicator shows
  • Pages work with polling fallback
  • No crashes when connection fails

Effort: 2-4 hours (graceful degradation) or 8-16 hours (full implementation)
Source: .claude/reports/UI_BUG_FIXES_REQUIRED.md

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions