How to handle different data for different users in Wave App? #2234
Replies: 2 comments 3 replies
-
Are you trying to have multiple users logged in inside separate tabs within single browser window? Do I understand it correctly? |
Beta Was this translation helpful? Give feedback.
-
sample_wave_app_multiple_clients.zip HI!Im sharing a sample repo to illustrate whats happening. I'll try executing it in different browser windows to check if it works. |
Beta Was this translation helpful? Give feedback.
-
Hi!I have built a wave application in which different users can login with their credentials and view data relevant to them. I have handled the login authentication bit independently via background apis and the authentication and first time data cards creation works fine. However when the updates are received by Wave server, The same update is reflected on the dashboard of two different users,on different client tabs I have been reading the documentation trying to understand
q.client
vsq.user
variables. How do i update user wise? How does Wave understand which browser client of which user to be updated? I usedmode=multicast
since I want all browser tabs for a particular user logged in to show updated data. However, The user separation bit isn't done properly. Can you help me understand how to fix this?Note: I have a backend server which pushed updates to the front end via web sockets. I am storing a websocket client at
q.client
level asq.client.engine_client
so this socket receives updated data. I am handling receiving data etc via callback based web socket library.Beta Was this translation helpful? Give feedback.
All reactions