Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When refreshing one tab, the WS connection in another tab gets terminated #226

Open
FRosner opened this issue Jun 9, 2017 · 0 comments
Open

Comments

@FRosner
Copy link
Owner

FRosner commented Jun 9, 2017

Problem

The way we handle multiple web socket connections from one user it not optimal. E.g. when one connection gets terminated, we terminate all of them.

Solution

Instead we should generate a UUID for each connection and keep them in a

Map[String, (Account, Map[String, Concurrent.Channel[Msg]])]

instead of

Map[String, (Account, Set[Concurrent.Channel[Msg]])]

This way we can keep track of the WS connections depending on the session ID individually, allowing multiple connections per session independently.

@FRosner FRosner added this to the 0.7.0 milestone Jun 9, 2017
@FRosner FRosner modified the milestones: 0.7.0, 0.8.0 Oct 12, 2017
@FRosner FRosner modified the milestones: 0.8.0, 0.9.0 Mar 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant