Skip to content

Add WebSocket Gateway for Real-Time Client Updates#175

Open
ahmadogo wants to merge 2 commits intoStayLitCodes:mainfrom
ahmadogo:webSocket
Open

Add WebSocket Gateway for Real-Time Client Updates#175
ahmadogo wants to merge 2 commits intoStayLitCodes:mainfrom
ahmadogo:webSocket

Conversation

@ahmadogo
Copy link
Copy Markdown

The WebSocket gateway has been successfully implemented.

Here's a summary of what was done:

  • JWT Authentication: Token validated on handshake (via header, query param, or auth object)
  • Room-based Subscriptions: Clients join escrow:{id} rooms for specific escrow updates
  • User Notification Channels: Each user auto-joins user:{userId} room
  • Reconnection Support: Recent events stored in memory (5 min TTL) for missed event recovery
  • CORS Configuration: Enabled for WebSocket connections

Closes #154

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 27, 2026

@ahmadogo Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

[Backend] Add WebSocket Gateway for Real-Time Client Updates

1 participant