persistence improvements

This commit is contained in:
Kevin Jahns
2018-01-10 00:11:25 +01:00
parent 07cf0b3436
commit 1a22fdd45e
3 changed files with 39 additions and 24 deletions

View File

@@ -145,7 +145,7 @@ export async function initArrays (t, opts) {
} else {
connOpts = Object.assign({ role: 'slave' }, conn)
}
let y = new Y({
let y = new Y(connOpts.room, {
_userID: i, // evil hackery, don't try this at home
connector: connOpts
})