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

Lost session for same client #352

Open
georgolden opened this issue Nov 22, 2022 · 1 comment
Open

Lost session for same client #352

georgolden opened this issue Nov 22, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@georgolden
Copy link
Member

georgolden commented Nov 22, 2022

Describe the bug

One authorized user uses an application with multiple tabs/windows. Server can not emit messages to all opened connections. There is no session in a run-time for second (other) tab/window.

To Reproduce

Use latest example. Open 2 windows in chrome. Try to use chat functionality.

Expected behavior

Server sends messages for all active clients throw channels.

Screenshots

Screenshot_20221122_154904

Logs:

During subscribe for both clients session 8 used.

14:39:43  W2   debug   Rpc call subscribe
14:39:43  W2   debug   Client-8 from a channel-8
14:39:43  W2   debug   Session exist for client: 8

14:39:44  W2   debug   Rpc call subscribe
14:39:44  W2   debug   Client-21 from a channel-21
14:39:44  W2   debug   Session exist for client: 8

Here is client21 with channel21 sends a message, but only client8 receive

14:40:59  W2   debug   Rpc call send
14:40:59  W2   debug   Client-21 from a channel-21
14:40:59  W2   debug   Session exist for client: 8
14:40:59  W2   debug   Emitting event from client: 8
14:40:59  W2   debug   Emitting with channel-8 attached for client-8

Client8 with channel8. Channel21 ignored

14:41:27  W2   debug   Rpc call send
14:41:27  W2   debug   Client-8 from a channel-8
14:41:27  W2   debug   Session exist for client: 8
14:41:27  W2   debug   Emitting event from client: 8
14:41:27  W2   debug   Emitting with channel-8 attached for client-8

Desktop (please complete the following information):

  • OS: Linux 64-bit
  • Node.js 18

##Additional context

Add any other context about the problem here.

@georgolden georgolden added the bug Something isn't working label Nov 22, 2022
@georgolden
Copy link
Member Author

Update: problem localized - COOKIE. we have cookies per domain and use cookies to store token - session identifier. There is no such problem with different browsers and incognito mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants