Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
unnecessary type detail in sample code.
  • Loading branch information
philcockfield authored Feb 28, 2024
1 parent 37a5abb commit 05b28ce
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 @@ -35,7 +35,7 @@ Along with the usual `NetworkAdapterInterface` events an additional `onData` eve
to keep track of directional data being sent and received, for example:

```ts
function monitor(adapter: PeerjsNetworkAdapter, dispose$?: Observable<any>) {
function monitor(adapter: PeerjsNetworkAdapter, dispose$?: Observable) {
const detach = adapter.onData((e) => console.log(`⚡️ ${e.direction}: ${e.bytes} bytes`));
dispose$?.subscribe(() => detach());
}
Expand Down

0 comments on commit 05b28ce

Please sign in to comment.