-
Notifications
You must be signed in to change notification settings - Fork 207
roots StateFlow on session #586
Copy link
Copy link
Open
Labels
P3Nice to haves, rare edge casesNice to haves, rare edge casesapiPublic API changesPublic API changesenhancementNew feature or requestNew feature or requestready for workHas enough information to startHas enough information to start
Metadata
Metadata
Assignees
Labels
P3Nice to haves, rare edge casesNice to haves, rare edge casesapiPublic API changesPublic API changesenhancementNew feature or requestNew feature or requestready for workHas enough information to startHas enough information to start
Is your feature request related to a problem? Please describe.
I would like to be able to get the current server roots without needing to send a request to the client every time. This is supported by the roots changed notification.
Describe the solution you'd like
For the server session object to have a
roots: MutableStateFlow<PersistentSet<String>>property or similar, that it updates based on received roots notifications. Ideally it would list the roots when first collected.Describe alternatives you've considered
Always listing the roots, which works but adds a bunch of overhead.
Additional context
Add any other context or screenshots about the feature request here.