setPersistence in bin/utils
This commit is contained in:
parent
ef5ab48733
commit
683313409d
@ -25,6 +25,14 @@ if (typeof persistenceDir === 'string') {
|
|||||||
persistence = new LevelDbPersistence(persistenceDir)
|
persistence = new LevelDbPersistence(persistenceDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {{bindState: function(string,WSSharedDoc):void,
|
||||||
|
* writeState:function(string,WSSharedDoc):Promise}|null} persistence_
|
||||||
|
*/
|
||||||
|
export const setPersistence = persistence_ => {
|
||||||
|
persistence = persistence_
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {Map<string,WSSharedDoc>}
|
* @type {Map<string,WSSharedDoc>}
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user