From 1414b13fd644f4de2223429038623dd2141d5996 Mon Sep 17 00:00:00 2001 From: Karissa McKelvey <633012+okdistribute@users.noreply.github.com> Date: Fri, 27 Aug 2021 15:55:55 -0700 Subject: [PATCH] Update index.ts --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 74ba577..24e0dc8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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) }) @@ -119,4 +120,4 @@ export class LocalRed { return room } -} \ No newline at end of file +}