-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server: Implement doSendEvents Fun #63
Conversation
@asmit27rai Please resolve the merge conflicts and also amend the commit message. The commit message should have a summary of the final changes that are there in the commit. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Conflicts Resolved. |
@asmit27rai That has introduced a merge commit. Also the PR affects some unrelated files |
Done |
const events = eventQueue.get(clientId) || []; | ||
if (res && events.length > 0) { | ||
res.json({ events }); | ||
eventQueue.set(clientId, []); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also remove the clientId
from clients
since the current res
object cannot be used further.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also remove the
clientId
fromclients
since the currentres
object cannot be used further.
Done
Please remove all other changes not related to the issue. The PR is fit to be merged, once that is done |
The doSendEvents function has been added to eventRecipients.ts. This function sends the events array as the response body and clears the event queue after sending. Additionally, the client is removed from the clients map after events are sent. Fixes: shivansh-bhatnagar18#61
Done. |
The commit message still isn't perfect, but I'm ignoring this time. |
Merged, thanks @asmit27rai and @sksmagr23 |
Complete doSendEvents Fun
Fixes #61
Description
Work On doSendEvent Function that send event if response object is available.
Checklist