drift.web.workers library

Utility functions enabling the use of web workers to accelerate drift on the web.

For more details on how to use this library, see the documentation.


connectToDriftWorker(String workerJsUri, {DriftWorkerMode mode = DriftWorkerMode.dedicated}) Future<DatabaseConnection>
Spawn or connect to a web worker written with driftWorkerMain.
driftWorkerMain(QueryExecutor openConnection()) → void
A suitable entrypoint for a web worker aiming to make a drift database available to other browsing contexts.


Describes the topology between clients (e.g. tabs) and the drift web worker when spawned with connectToDriftWorker.