mirror of
https://github.com/yjs/yjs.git
synced 2025-12-29 00:25:01 +01:00
Create Structs based on offset, if necessary
implement offset parameter in Ref.toStruct
This commit is contained in:
@@ -243,6 +243,7 @@ export const init = (tc, { users = 5 } = {}) => {
|
||||
result.testConnector = testConnector
|
||||
for (let i = 0; i < users; i++) {
|
||||
const y = testConnector.createY(i)
|
||||
y.clientID = i
|
||||
result.users.push(y)
|
||||
result['array' + i] = y.get('array', Y.Array)
|
||||
result['map' + i] = y.get('map', Y.Map)
|
||||
|
||||
Reference in New Issue
Block a user