Skip to content

Commit

Permalink
Merge pull request #52 from ndp/patch-2
Browse files Browse the repository at this point in the history
Minor docs updates
  • Loading branch information
ept committed Nov 22, 2023
2 parents 7b3b589 + 1b38836 commit 9808081
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ A real application would probably handle routing differently, but this is enough

## Working with the document

The main way of interacting with a Repo is through `DocHandles`, which allow you to read data from a document or make changes to it and which emit `"change"` events whenever the document changes -- either through local actions or over the network.
The main way of interacting with a Repo is through `DocHandles`, which allow you to read data from a document or make changes to it, and which emit `"change"` events whenever the document changes -- either through local actions or over the network.

Now that we have a document handle stuck onto the window, let's experiment with it. Start your application now with:

Expand Down Expand Up @@ -216,7 +216,7 @@ const repo = new Repo({
})
```
This creates a repo which syncs changes it sees to `sync.automerge.org` and any other process can connect to that server and use the URL to get the changes we've made.
This creates a repo which syncs changes it sees to `sync.automerge.org`, and any other process can connect to that server and use the URL to get the changes we've made.
:::note
Expand Down
2 changes: 1 addition & 1 deletion docs/repositories/ephemeral.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The object passed to `broadcast` will be CBOR encoded so you can send whatever y

## Receiving

To receive you listen to the `"ephemeral-mesage"` event on the `DocHandle`
To receive you listen to the `"ephemeral-message"` event on the `DocHandle`

```typescript
const handle = Repo.find("<some url>")
Expand Down

0 comments on commit 9808081

Please sign in to comment.