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

Allow connecting to more than one chat simultaneously #2

Open
ribice opened this issue Jul 11, 2019 · 1 comment
Open

Allow connecting to more than one chat simultaneously #2

ribice opened this issue Jul 11, 2019 · 1 comment

Comments

@ribice
Copy link
Owner

ribice commented Jul 11, 2019

Currently you can have only one chat per websocket connection.

This is limited in internal/agent/agent.go where Agent struct holds single Chat.

On client, this currently works by connecting to new chat and disconnecting from previous one each time a different chat is clicked. But this prevents getting messages from other chats, although you can still show number of unread messages by invoking the unread count endpoint.

@ribice ribice changed the title Allow more than one chat Allow connecting to more than one chat at Jul 11, 2019
@ribice ribice changed the title Allow connecting to more than one chat at Allow connecting to more than one chat simultaneously Jul 11, 2019
@joeblew99
Copy link

https://nats-io.github.io/docs/developer/concepts/seq_num.html

At the bottom it mentions a nice pattern.
So you can have many chats this way with the one connection i think.

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

2 participants