shivansh-bhatnagar18 / multiplayer-uno

https://multiplayer-uno.vercel.app
20 stars 43 forks source link

Implement the enqueuing mechanism for clients #60

Closed kuv2707 closed 1 month ago

kuv2707 commented 1 month ago

Description

We should store all the events to be sent to a client in a queue, and empty the queue when we have a response object available. We need to use a queue because if we immediately try to sent the events, it is possible that the client has not sent another polling request at the time of sending events, leading to the events being sent nowhere, and never reaching the client.

Notes

ritwik-69 commented 1 month ago

i would like to work on this issue