This package contains simplified driver implementations used by Fluid examples in the FluidFramework repo. These may only be used in the examples, and are not intended for use in production scenarios.
To use this package in an example, you must first integrate the @fluid-example/example-webpack-integration package as described in its README. Then follow these steps:
- When constructing your driver, first call
getSpecifiedServiceFromWebpack()to determine the requested service (one of"t9s","odsp", or"local"). - Then call
createExampleDriver(service)using the value obtained from 1. This will return anExampleDriver. - Use the
ExampleDriver'surlResolveranddocumentServiceFactorydirectly in your calls tocreateDetachedContainer()andloadExistingContainer(). - Use the
ExampleDriver'screateCreateNewRequest(id)to generate anIRequestfor yourcontainer.attach(request)call. Provide it with a unique id.- If you are using the odsp service, the passed id will be used when loading the container in the future. Otherwise, inspect the
container.resolvedUrl.idafter attach has completed to discover the container id to use for loading.
- If you are using the odsp service, the passed id will be used when loading the container in the future. Otherwise, inspect the
- Use the
ExampleDriver'screateLoadExistingRequest(id)to generate anIRequestfor yourloadExistingContainer()call. Note thatcreateLoadExistingRequestreturns aPromise<IRequest>and must beawaited.
See GitHub for more details on the Fluid Framework and packages within.
There are many ways to contribute to Fluid.
- Participate in Q&A in our GitHub Discussions.
- Submit bugs and help us verify fixes as they are checked in.
- Review the source code changes.
- Contribute bug fixes.
Detailed instructions for working in the repo can be found in the Wiki.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services. Use of these trademarks or logos must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Not finding what you're looking for in this README? Check out fluidframework.com.
Still not finding what you're looking for? Please file an issue.
Thank you!
This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
Use of these trademarks or logos must follow Microsoft's Trademark & Brand Guidelines.
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.