hello,
first congratulations on your project.
the code works ok.
about continuing to improve and add functions.
About Connection:
app makes a connection with Name ok, then it can happen to lose the connection for various reasons.
example Websocket disconnected the App (disconnect event)
the user has the initial screen ok, if the user tries to reconnect with the same name it is not accepted, what would be the solution.
store the NAME in the App ( useState ) setName.
create session + setName (save) and then when there is a disconnection event coming from the Websocket, the App will signal that it has disconnected and keep the NAME in the disconnected App, and that it can continue using the same NAME and session.
thanks,
Carlos.
hello,
first congratulations on your project.
the code works ok.
about continuing to improve and add functions.
About Connection:
app makes a connection with Name ok, then it can happen to lose the connection for various reasons.
example Websocket disconnected the App (disconnect event)
the user has the initial screen ok, if the user tries to reconnect with the same name it is not accepted, what would be the solution.
store the NAME in the App ( useState ) setName.
create session + setName (save) and then when there is a disconnection event coming from the Websocket, the App will signal that it has disconnected and keep the NAME in the disconnected App, and that it can continue using the same NAME and session.
thanks,
Carlos.