ydb client

This commit is contained in:
Kevin
2018-10-08 16:09:50 +02:00
parent 9d5bf50676
commit b98ebddb69
22 changed files with 1484 additions and 11 deletions

View File

@@ -36,12 +36,12 @@ export default class Y extends NamedEventHandler {
* @type {String}
*/
this.room = room
if (opts != null) {
if (opts != null && opts.connector != null) {
opts.connector.room = room
}
this._contentReady = false
this._opts = opts
if (typeof opts.userID !== 'number') {
if (opts == null || typeof opts.userID !== 'number') {
this.userID = generateRandomUint32()
} else {
this.userID = opts.userID