Skip to content

Commit

Permalink
Fix a minor typo in the subscribe example
Browse files Browse the repository at this point in the history
- There are no option to have a handler on the query.
  • Loading branch information
sondreb committed Sep 24, 2024
1 parent e2df13a commit fbc7e8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ const { status } = await web5.dwn.records.subscribe({

console.log(status.code === 200); // successful subscription

// This invocation will query Bob's DWeb Nodes
const { status } = await web5.dwn.records.query({
// This invocation will subscribe to Bob's DWeb Nodes
const { status } = await web5.dwn.records.subscribe({
from: "did:example:bob",
message: {
filter: {
Expand Down

0 comments on commit fbc7e8f

Please sign in to comment.