Skip to content

Commit

Permalink
fix: Correct quick start in README (#151)
Browse files Browse the repository at this point in the history
Updates outdated reference in quick start code
  • Loading branch information
saulmc authored Aug 22, 2022
1 parent 9543414 commit 5bb4304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const messages = await conversation.messages()
await conversation.send('gm')
// Listen for new messages in the conversation
for await (const message of await conversation.streamMessages()) {
console.log(`[${message.senderAddress}]: ${message.text}`)
console.log(`[${message.senderAddress}]: ${message.content}`)
}
```

Expand Down Expand Up @@ -214,7 +214,7 @@ for await (const message of await conversation.streamMessages()) {
// This message was sent from me
continue
}
console.log(`New message from ${message.senderAddress}: ${message.text}`)
console.log(`New message from ${message.senderAddress}: ${message.content}`)
}
```

Expand Down

0 comments on commit 5bb4304

Please sign in to comment.