Skip to main content
New in version 2.0.0 Use this when you need to tell servers what local resources the client has access to. Roots inform servers about resources the client can provide. Servers can use this information to adjust behavior or provide more relevant responses.

Static Roots

Provide a list of roots when creating the client:

Dynamic Roots

Use a callback to compute roots dynamically when the server requests them: