You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a username feature.
Users must enter a username when starting their clients, in order to proceed to the chat stage.
Thread on server side waits for the first message to be sent from the client; the first message will be the username, and then jumps into the while loop to receive subsequent messages.
On the client side, the plan is to prompt the user to input a username upon connecting for the first time. This will then be read by the server.
Ideas:
When the thread is started, before entering the while loop, read the first input line.
The text was updated successfully, but these errors were encountered: