Synclets logoSynclets

createMemorySynclet

The createMemorySynclet function creates an in-memory Synclet with both data and metadata storage in a single call.

createMemorySynclet<Depth>(options: MemorySyncletOptions<Depth>): Promise<Synclet<Depth, DataConnector<Depth>, MetaConnector<Depth>>>
TypeDescription
optionsMemorySyncletOptions<Depth>

Configuration object specifying transport and other Synclet options.

returnsPromise<Synclet<Depth, DataConnector<Depth>, MetaConnector<Depth>>>

A Promise resolving to the configured Synclet instance.

This is the simplest way to create a fully functional Synclet with no persistence, making it ideal for testing, prototyping, or scenarios where data should not survive process restarts. The function provides a simplified API that creates both the DataConnector and MetaConnector internally, along with the Synclet instance.

Since

v0.0.0