CodeRoyale / lobby

Lobby (Backend) for CodeRoyale

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No Connection Response on empty users array.

sawarni99 opened this issue · comments

After connecting to the server, socket waits for the response from the server as ACK or DENY. But if there is no users in the room initially, it does not respond.

Code for connection.

code_connect

Website on which test is running.

initial_web

Steps to Generate.

  • Set the username to anything (say Sawarni).

  • Click on Generate Link.

-> It prints sending req on console but does not print ACK or DENY as a response.
after_click_generate
-> However it sets user in the server.
server_after_click

  • Refresh the website and click on Generate Link again.

-> Now the connection response will show on the console.
after_refresh

We have to remove this bug. Whenever a user clicks on the Generate Link button, server should send a response to the client.

FIxed