Export docs - fixes #27

This commit is contained in:
Kevin Jahns 2020-08-11 21:53:42 +02:00
parent 880ad59711
commit 7d5517b714

View File

@ -58,6 +58,8 @@ exports.setPersistence = persistence_ => {
* @type {Map<string,WSSharedDoc>} * @type {Map<string,WSSharedDoc>}
*/ */
const docs = new Map() const docs = new Map()
// exporting docs so that others can use it
exports.docs = docs
const messageSync = 0 const messageSync = 0
const messageAwareness = 1 const messageAwareness = 1