john-okeefe
|
317a4e82a0
|
feat: add WebSocket handler with dual authentication
Add WSHandler for WebSocket connection management:
- Upgrade HTTP to WebSocket connections
- Dual authentication support:
- JWT token via query parameter (web clients)
- Bearer token via Authorization header (devices)
- Client info extraction for users and devices
- Separate read and write pumps for concurrent I/O
- Ping/pong heartbeat mechanism (30s interval)
- Initial state delivery on connection
- Connection cleanup on disconnect
Implements Week 9 WebSocket endpoint functionality from
Universal Sync Implementation Guide.
|
2026-01-30 21:47:11 -05:00 |
|