From 3609ea59eda77cf6278009863176d9ed1a8f664a Mon Sep 17 00:00:00 2001 From: ritwik-69 <72665321+ritwik-69@users.noreply.github.com> Date: Tue, 4 Jun 2024 12:24:45 +0530 Subject: [PATCH] client:Implemented the enqueuing mechanism for clients This commits creates a function that pushes the event object into the event queue of a specific client id. Fixes:#60 --- backend/src/eventRecipients.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/eventRecipients.ts b/backend/src/eventRecipients.ts index c96fefd..2358e5d 100644 --- a/backend/src/eventRecipients.ts +++ b/backend/src/eventRecipients.ts @@ -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) {