Extend DocumentDriveServer class to support a config object.
Information related to default drives now should be added using a config like this:
export const BrowserDocumentDriveServer = new DocumentDriveServer(
documentModels,
new BrowserStorage(connectConfig.routerBasename),
new InMemoryCache(),
new BaseQueueManager(1, 10),
{
resetDrives: boolean, // reset drives that are not part of the default drives
defaultDrives: {
local: [{ ...localDriveInfo }],
remote: [{ ...remoteDriveInfo }],
},
},
);
from there, document-drive should take care of adding the drives, initialize them, and track sync information (initial sync information)
sync information should be available to the clients
Description:
Extend
DocumentDriveServer
class to support a config object.Information related to default drives now should be added using a config like this:
from there, document-drive should take care of adding the drives, initialize them, and track sync information (initial sync information)
sync information should be available to the clients