Suyious / purrr.frontend

Frontend for Purrr - Chat Application that connects randomly among online users
https://purrr.chat
1 stars 2 forks source link

Feature: Display zero waiting #42

Open costomato opened 1 month ago

costomato commented 1 month ago

If there's no one on the server (not the lobby, the entire server, like zero overall), then we can display an appropriate message instead of Waiting to connect.

HarshNarayanJha commented 1 month ago

Duplicate of #1

On the side of implementing it, over on the server in the chat handler,

https://github.com/Suyious/purrr.backend/blob/8177686af94a5dbb74696953947c9964909a11d6/src/handlers/chat.ts#L21

we could send if the there is anyone in the waiting list

https://github.com/Suyious/purrr.backend/blob/8177686af94a5dbb74696953947c9964909a11d6/src/services/chat.ts#L6

(other than us). Then the frontend could display different things depending on that!