Skip to content

Connection improvements #53

@wowawiwa

Description

@wowawiwa

Reformulated:

When the SSE connection is interrupted (e.g. because the user switched tab, or networking issues).
Then the BE ends up dropping the session after a while. If the FE doesn't notice it, it could show the user wrong information.
For example, the FE shows the Room, but updates aren't received.

As long as the SSE connection is not doing errors, the session cannot have been lost.
But on error: It could be because of networking error. In this case, the session has not been lost: Only the SSE must be reopen.
Or it could be that the session has been Lost.
But the SSE api doesn't seem to allow knowing that. Thus, we must find a way for the FE to ask the BE if the session is still there.

Original:

  • EventSource connection has TTL 3 minutes. If the client goes in a tunnel for more than that, the client will fail reconnecting, he should hello again. This isn't handled. (How to catch this in the EventSource thing?).
  • Allow UI to send "close session" (case where the user closes the session on purpose).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions