Skip to content

Real-time referral message updates in UI - #290

Merged
omkarhole merged 1 commit into
omkarhole:mainfrom
Aditya8369:255
Jun 7, 2026
Merged

Real-time referral message updates in UI#290
omkarhole merged 1 commit into
omkarhole:mainfrom
Aditya8369:255

Conversation

@Aditya8369

Copy link
Copy Markdown
Contributor

Summary of Work
Backend Rooms: Registered joinReferral and leaveReferral listeners in

socket.js
to manage client connections to room referral:${id}.
Context Provider Integration: Wrapped the frontend router in

App.jsx
with SocketProvider.
Socket Context & Hook: Added joinReferral/leaveReferral helpers and implemented a new useSocketListener hook in

SocketContext.jsx
to safely subscribe and unsubscribe to socket events.
Real-time Referral Page Integration: Modified

ReferralDetail.jsx
to join the socket room on mount and listen to referralMessageCreated events, appending new messages to the UI in real-time while deduplicating by _id.
Verification: Executed a production build (npm run build) of the frontend which succeeded with zero errors.
closes #255

@vercel

vercel Bot commented Jun 6, 2026

Copy link
Copy Markdown

@Aditya8369 is attempting to deploy a commit to the omkarhole's projects Team on Vercel.

A member of the Team first needs to authorize it.

@omkarhole
omkarhole merged commit bd4b9cc into omkarhole:main Jun 7, 2026
0 of 2 checks passed
@omkarhole omkarhole added NSOC'26 Issues for the NSOC 2026 program level3 10 points labels Jun 7, 2026
@Aditya8369
Aditya8369 deleted the 255 branch June 7, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level3 10 points NSOC'26 Issues for the NSOC 2026 program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENHANCE]: Real-time referral message updates in UI

2 participants