Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
okdistribute committed Aug 27, 2021
1 parent 45a170d commit 1414b13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Expand Up @@ -79,6 +79,7 @@ export class LocalRed {
emitter.emit('error')
})
client.on('update', (changes: Automerge.BinaryChange[]) => {
// TODO: actually emit 'message' for each new message
let msg = client.document.messages[0]
emitter.emit('message', msg)
})
Expand Down Expand Up @@ -119,4 +120,4 @@ export class LocalRed {
return room
}

}
}

0 comments on commit 1414b13

Please sign in to comment.