This commit is contained in:
William Mantly 2020-08-24 17:03:53 -04:00
parent c9ec277cc3
commit e3e55b8a92
Signed by: wmantly
GPG Key ID: 186A8370EFF937CA

View File

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