From 2afff46eb3cf9b9ee6d4ea7b0b8049e13d219ee2 Mon Sep 17 00:00:00 2001 From: Phil Cockfield Date: Wed, 28 Feb 2024 19:49:53 +1300 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3cc0687..e17ab58 100644 --- a/README.md +++ b/README.md @@ -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); } ```