Skip to content

feat: robust real-time WebSocket communication system#203

Merged
Mystery-CLI merged 2 commits intoEthereal-Future:mainfrom
Mozez155:feat/websocket-robust
Mar 29, 2026
Merged

feat: robust real-time WebSocket communication system#203
Mystery-CLI merged 2 commits intoEthereal-Future:mainfrom
Mozez155:feat/websocket-robust

Conversation

@Mozez155
Copy link
Copy Markdown

  • Connection pooling: cap MAX_CONNECTIONS_PER_KEY (5) per account
  • Message queuing: offline clients get queued messages on reconnect (MAX_QUEUE_SIZE=100)
  • Authentication: JWT token auth via 'auth' message type; dev mode allows unauthenticated
  • Message security: HMAC-SHA256 envelope signing on all outbound messages (WS_MSG_SECRET)
  • Error recovery: heartbeat detects stale connections and terminates them
  • Monitoring: getWsStats() exposes totalConnections, activeConnections, messagesDelivered, messagesQueued, authFailures, errors, subscribedAccounts, queuedAccounts
  • GET /api/metrics/websocket endpoint for admin dashboard
  • Structured message protocol: auth, subscribe, unsubscribe, ping/pong, error types
  • Graceful unsubscribe support
    closes Add Comprehensive Audit Logging #159

Alice and others added 2 commits March 29, 2026 07:57
- Connection pooling: cap MAX_CONNECTIONS_PER_KEY (5) per account
- Message queuing: offline clients get queued messages on reconnect (MAX_QUEUE_SIZE=100)
- Authentication: JWT token auth via 'auth' message type; dev mode allows unauthenticated
- Message security: HMAC-SHA256 envelope signing on all outbound messages (WS_MSG_SECRET)
- Error recovery: heartbeat detects stale connections and terminates them
- Monitoring: getWsStats() exposes totalConnections, activeConnections, messagesDelivered,
  messagesQueued, authFailures, errors, subscribedAccounts, queuedAccounts
- GET /api/metrics/websocket endpoint for admin dashboard
- Structured message protocol: auth, subscribe, unsubscribe, ping/pong, error types
- Graceful unsubscribe support
@Mystery-CLI Mystery-CLI merged commit a5bb762 into Ethereal-Future:main Mar 29, 2026
1 of 11 checks passed
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.

Add Comprehensive Audit Logging

2 participants