feat: add users twice

This commit is contained in:
cudr 2019-10-19 23:14:49 +03:00
parent b025c8d850
commit 20c44d369f
3 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,8 @@ class Connection {
this.options = merge(defaultOptions, options) this.options = merge(defaultOptions, options)
this.configure() this.configure()
return this
} }
private configure = () => private configure = () =>

View File

@ -50,6 +50,8 @@ class Connection {
this.docSet = new Automerge.DocSet() this.docSet = new Automerge.DocSet()
this.connect() this.connect()
return this
} }
sendData = (data: any) => { sendData = (data: any) => {

View File

@ -31,6 +31,7 @@ class Room extends Component<RoomProps, RoomState> {
componentDidMount() { componentDidMount() {
this.addUser() this.addUser()
setTimeout(this.addUser, 10)
} }
render() { render() {