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 25282be commit 2afff46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ to keep track of directional data being sent and received, for example:
```ts
function monitor(adapter: PeerjsNetworkAdapter, dispose$?: Observable) {
const detach = adapter.onData((e) => console.log(`⚡️ ${e.direction}: ${e.bytes} bytes`));
dispose$?.subscribe((detach);
dispose$?.subscribe(detach);
}

```
Expand Down

0 comments on commit 2afff46

Please sign in to comment.