integrate ydb client and adapt some demos

This commit is contained in:
Kevin Jahns
2018-10-13 14:38:29 +02:00
parent 3b08267daa
commit 4c01a34d09
27 changed files with 314 additions and 91 deletions

View File

@@ -36,21 +36,8 @@ export default class Y extends NamedEventHandler {
* @type {String}
*/
this.room = room
<<<<<<< HEAD:src/Y.js
if (opts != null && opts.connector != null) {
opts.connector.room = room
}
this._contentReady = false
this._opts = opts
if (opts == null || typeof opts.userID !== 'number') {
this.userID = generateRandomUint32()
} else {
this.userID = opts.userID
}
=======
this._contentReady = false
this.userID = generateRandomUint32()
>>>>>>> experimental-connectors:src/Y.mjs
// TODO: This should be a Map so we can use encodables as keys
this.share = {}
this.ds = new DeleteStore(this)