Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
philcockfield authored Feb 28, 2024
1 parent e488010 commit 3910ae7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Establish a data connection as per [peerjs](https://github.com/peers/peerjs#data

```ts
import { Peer } from "peerjs";
const peer = new Peer("pick-an-id");
const conn = peer.connect("another-peers-id");
```

Expand All @@ -30,7 +31,7 @@ import { PeerjsNetworkAdapter } from 'automerge-repo-network-peerjs';
const adapter = new PeerjsNetworkAdapter(conn);
```

Along with the usual `NetworkAdapterInterface` events an additional `onData` event is available to
Along with the usual `NetworkAdapterInterface` events an additional `onData` event is available
to keep track of directional data being sent and received, for example:

```ts
Expand Down

0 comments on commit 3910ae7

Please sign in to comment.