From e3e55b8a92b0cfe4dc13658c4f57a1d8c3ec7c1d Mon Sep 17 00:00:00 2001 From: William Mantly Date: Mon, 24 Aug 2020 17:03:53 -0400 Subject: [PATCH] docs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4c612ef..ebc7361 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ list of peers to connect with. Methods are provided by either the `P2P` or `PubSub` classes. The `P2PSub` class is a mix of both classes and merges the Pub/Sub with p2p functions. -### Provided by `PubSub` class +#### Provided by `PubSub` class * `subscribe(topic, callback-function)` Sets a function to be called on `topic` publish. A RegExp patter can be passed as the topic and will match to @@ -129,7 +129,7 @@ is a mix of both classes and merges the Pub/Sub with p2p functions. * `topics` An instance attribute holding an Object on topics and bound callbacks. This is not exposed by the `P2PSub` class. -### Provided by `P2P` +#### Provided by `P2P` * `addPeer(peer)` Adds a remote peer to the local peers connections. `peer` can passed as a single sting with a hostname and port, `'remotehost.com:7575'`,