Skip to content

Disconnect (by Server ) #1

@autoprog

Description

@autoprog

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions