discontinuedPackage powersync_core has been discontinued and replaced by powersync.

exposeEndpoint abstract method

Future<WebDatabaseEndpoint> exposeEndpoint()

Returns a WebDatabaseEndpoint - a structure that consists only of types that can be transferred across a MessagePort in JavaScript.

After transferring this endpoint to another JavaScript context (e.g. a worker), the worker can call connectToEndpoint to obtain a connection to the same sqlite database.

Implementation

Future<WebDatabaseEndpoint> exposeEndpoint();