Skip to content

Add Socket.IO layer for real-time communication#19

Merged
hussein-m-kandil merged 2 commits intomainfrom
dev
Feb 9, 2026
Merged

Add Socket.IO layer for real-time communication#19
hussein-m-kandil merged 2 commits intomainfrom
dev

Conversation

@hussein-m-kandil
Copy link
Copy Markdown
Owner

Summary

This PR introduces real-time, bidirectional communication using Socket.IO to enable instant client updates. Clients are now notified immediately when chats are created, received/seen, updated, or deleted, improving responsiveness and user experience in a more professional yet efficient way.


Key Features

Real-time Communication

  • Integrated Socket.IO server alongside the existing HTTP API.
  • Enabled bidirectional client–server communication for chat events.

Live Chat Updates

  • Notify connected clients when chats are created, received/seen, updated, or deleted.
  • Emit scoped events so only affected chat participants receive updates.

Notes

  • This PR adds real-time capabilities without changing existing REST contracts.
  • Existing endpoints remain backward-compatible.
  • Notifications are stateless; meant to only inform the client that it needs to update.

@hussein-m-kandil hussein-m-kandil merged commit 10d40e6 into main Feb 9, 2026
1 check 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.

1 participant