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'`,