Skip to content

Commit

Permalink
client:Implemented the enqueuing mechanism for clients
Browse files Browse the repository at this point in the history
This commits creates a function that pushes the event object
 into the event queue of a specific client id.

 Fixes:#60
  • Loading branch information
ritwik-69 authored and kuv2707 committed Jun 10, 2024
1 parent c31229f commit 3609ea5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/src/eventRecipients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ export function getAllClients(): ClientId[] {
return Array.from(clients.keys());
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function scheduleSend(clientId: ClientId, event: AppEvent) {
//todo: Enqueue the event for sending.
eventQueue.get(clientId)?.push(event);
}

export function doSendEvents(clientId: ClientId) {
Expand Down

0 comments on commit 3609ea5

Please sign in to comment.