Skip to content

Conversation

@egeuysall
Copy link
Owner

Implemented full WebSocket support to enable real-time updates across the application:

Backend Changes:

  • Added gorilla/websocket dependency for WebSocket support
  • Created WebSocket hub for managing client connections and broadcasting
  • Implemented WebSocket handler with JWT authentication
  • Updated middleware to support token authentication via query parameters
  • Integrated WebSocket broadcasts in link handlers (create/update/delete)
  • Added WebSocket message types to backend models
  • Updated API router to include WebSocket endpoint at /v1/ws

Frontend Changes:

  • Created useWebSocket custom hook for WebSocket connection management
  • Added WebSocket message types to frontend type definitions
  • Created RealTimeLinks component for live link updates
  • Updated group detail page to use real-time updates
  • Added connection status indicators

Infrastructure Changes:

  • Updated Nginx configuration to support WebSocket protocol upgrades
  • Added WebSocket-specific proxy headers and long timeouts

Features:

  • Real-time link creation notifications
  • Real-time link comment updates
  • Real-time link deletion notifications
  • Automatic reconnection with exponential backoff
  • Per-group subscription model
  • JWT authentication for secure connections

🤖 Generated with Claude Code

Implemented full WebSocket support to enable real-time updates across the application:

Backend Changes:
- Added gorilla/websocket dependency for WebSocket support
- Created WebSocket hub for managing client connections and broadcasting
- Implemented WebSocket handler with JWT authentication
- Updated middleware to support token authentication via query parameters
- Integrated WebSocket broadcasts in link handlers (create/update/delete)
- Added WebSocket message types to backend models
- Updated API router to include WebSocket endpoint at /v1/ws

Frontend Changes:
- Created useWebSocket custom hook for WebSocket connection management
- Added WebSocket message types to frontend type definitions
- Created RealTimeLinks component for live link updates
- Updated group detail page to use real-time updates
- Added connection status indicators

Infrastructure Changes:
- Updated Nginx configuration to support WebSocket protocol upgrades
- Added WebSocket-specific proxy headers and long timeouts

Features:
- Real-time link creation notifications
- Real-time link comment updates
- Real-time link deletion notifications
- Automatic reconnection with exponential backoff
- Per-group subscription model
- JWT authentication for secure connections

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@vercel
Copy link

vercel bot commented Oct 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
cove Error Error Oct 23, 2025 5:47pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants