Skip to content

[LM-12339] Real Time#85

Open
jaixchaudhary wants to merge 1 commit intomasterfrom
feature/LM-12339_RealTime
Open

[LM-12339] Real Time#85
jaixchaudhary wants to merge 1 commit intomasterfrom
feature/LM-12339_RealTime

Conversation

@jaixchaudhary
Copy link
Copy Markdown
Contributor

Description

Features

  • Real Time

What kind of change does this PR introduce? (check at least one)

  • Bug fix (non-breaking change which fixes an issue)
  • Hotfix (fixes a breaking changes)
  • New Feature (non-breaking change which adds functionality)
  • Other, please describe:

Author Checklist

  • Assignee added
  • Reviewer added
  • Description added
  • Unit test cases added

Reviewer Checklist

  • PR title starts with Jira ticket number prefix
  • If hotfix, Add Hotfix as prefix in PR title
  • Label added
  • Commit messages follows standard format (added, changed, removed, code commented and chore)
  • Description about the Feature/ Bugs added

@jaixchaudhary jaixchaudhary added the enhancement New feature or request label Feb 14, 2025
@jaixchaudhary jaixchaudhary self-assigned this Feb 14, 2025
console.log("WebSocket connection opened.");
},
onMessageReceived: async (data) => {
console.log("New message received:", data.conversation);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove log

Comment on lines +648 to +658
const conversationID = data?.conversation?.id;
if (conversationID) {
const maxTimeStamp = Math.floor(Date.now() * 1000);
await firebaseConversationSyncAPI(
INITIAL_SYNC_PAGE,
0,
maxTimeStamp,
conversationID
);
fetchChatroomDetails();
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we calling API? when we are getting whole conversation object in data

});
}, [chatroomID]);

const ChatCallback = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please match the variable name from ed.

console.log("WebSocket connection closed.");
},
onError: (errorMessage: string) => {
console.error("WebSocket error:", errorMessage);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Show the error as toast message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants