-
Notifications
You must be signed in to change notification settings - Fork 535
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
view-only mode should issue "connected" event on current clientID being in audience #1733
Comments
I am wondering whether there should be two separate event for actual websocket connection versus quorum/audience connection. |
@tanviraumi has similar point in email (regarding latency of being connected). Adding to his point - "connected" is used to start sending ops (in "write" mode), so delaying it is not ideal.
|
Summarizing, based on a bunch of earlier discussions and re-reading threads:
Note that side-effect of this may be slower time to raise "connected" event which might delay sending of local ops. We might want to measure that delay to make sure we are not regressing it badly. Maybe better solution for Audience would be to synthetize self in audience on connection, as I believe we have all the data to do so, and ignore addMember that will happen next. Worth testing before making it more complex that indeed self shows up in audience later, i.e. this code (on "connected") does not bring self:
Might be worth splitting it into many issues. |
This issue has been automatically marked as stale because it has had no activity for 180 days. It will be closed if no further activity occurs within 8 days of this comment. Thank you for your contributions to Fluid Framework! |
I'm closing this one as a dupe of "fresher" issue #7275. But this is super helpful context/back-story to refer to. |
We should also double-check that "write" mode also follows same requirements.
Once done, we should follow up and remove code on Bohemia side working around this issue.
More background:
From: Tony Murphy Anthony.Murphy@microsoft.com
Sent: Tuesday, April 7, 2020 10:09 AM
To: Vlad Sudzilouski vladsud@exchange.microsoft.com; Tanvir Aumi mdaumi@microsoft.com
Subject: RE: Readonly and Audience
The change made to work around is pretty complicated for something I think should be trivial. I really don’t want all our partners to build similar logic just to find the current user:
https://office.visualstudio.com/OC/_git/74031860-e0cd-45a1-913f-10bbf3f82555/pullrequest/446248?_a=overview
From: Tony Murphy
Sent: Tuesday, April 7, 2020 10:03 AM
To: Vlad Sudzilouski vladsud@exchange.microsoft.com; Tanvir Aumi mdaumi@microsoft.com
Subject: RE: Readonly and Audience
That would be great too. I’m not really proposing a specific solution, just that I think we need on here. Another idea I have was a “connected”-like event on the audience that fires when your client show up in the audience.
-Tony
From: Vlad Sudzilouski vladsud@exchange.microsoft.com
Sent: Tuesday, April 7, 2020 9:26 AM
To: Tony Murphy Anthony.Murphy@microsoft.com; Tanvir Aumi mdaumi@microsoft.com
Subject: RE: Readonly and Audience
We can. But I think it’s even better if it’s handled as first class by server (see attached)
From: Tony Murphy Anthony.Murphy@microsoft.com
Sent: Tuesday, April 7, 2020 9:11 AM
To: Vlad Sudzilouski vladsud@exchange.microsoft.com; Tanvir Aumi mdaumi@microsoft.com
Subject: Readonly and Audience
Hey Guys,
I was thinking about this, and I really don’t like the proposed solution for getting the current user for the audience. I think it requires some pretty nasty code to handle all cases. What is the worry about delaying connected until the user is in it’s own audience?
-Tony
The text was updated successfully, but these errors were encountered: