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

How to treat chat session thread-safe like http session #37

Open
lsianturi opened this issue Jun 8, 2017 · 2 comments
Open

How to treat chat session thread-safe like http session #37

lsianturi opened this issue Jun 8, 2017 · 2 comments

Comments

@lsianturi
Copy link

lsianturi commented Jun 8, 2017

Hello,
how to handle multiple chat users in different session, so for example if we create an object in the handler it will not mix across different users.

@formatq
Copy link

formatq commented Aug 13, 2017

Maybe just store in DB?

@mhkarimi
Copy link

mhkarimi commented May 8, 2019

Hello,
how to handle multiple chat users in different session, so for example if we create an object in the handler it will not mix across different users.

You should user Concurrenthashmap and with each user's ID as a key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants