The socket event message delivered is emitted by the server, but the client-side consumer in useEffect does not trigger the UI update as intended.
Messages are sent successfully, but the UI does not reflect the updated message status in real time.
Description
The chat messages UI should update in real-time, for all classroom (and socket room) participants. Currently, this feature works only for the message sender (the user who dispatches send message event).
Chat messages collection is updated in MongoDB. All users can see the new message upon refreshing the page, but new message doesn't render in real-time for other participants.
Summary:
message delivered
is emitted by the server, but the client-side consumer inuseEffect
does not trigger the UI update as intended.Description
send message
event).