Skip to content

Client pings Server every 1s in case of connection-lost #1989

@quriosapien

Description

@quriosapien

Is your feature request related to a problem? Please describe.
Problem message - https://discord.com/channels/804011606160703521/804011606160703524/809370571040882709
The client pings the server every 1000ms (1s) in case of a connection lost.
It leads to a situation like this -
Screenshot 2021-02-11 at 3 54 53 PM

Describe the solution you'd like
We can delay the ping made to the server in case of a web-socket connection lost.
With every failed ping, we can increase the time it waits for the next ping.

Describe alternatives you've considered
We can show a error message in browser itself and let user click on a button to reload. Thus we can avoid pinging server every 1s. This would be a very manual effort though.

Additional context
I guess, this is where we need to modify our code.
vitejs-code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions