We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37a5abb commit 05b28ceCopy full SHA for 05b28ce
README.md
@@ -35,7 +35,7 @@ Along with the usual `NetworkAdapterInterface` events an additional `onData` eve
35
to keep track of directional data being sent and received, for example:
36
37
```ts
38
-function monitor(adapter: PeerjsNetworkAdapter, dispose$?: Observable<any>) {
+function monitor(adapter: PeerjsNetworkAdapter, dispose$?: Observable) {
39
const detach = adapter.onData((e) => console.log(`⚡️ ${e.direction}: ${e.bytes} bytes`));
40
dispose$?.subscribe(() => detach());
41
}
0 commit comments