Fix init signature according to Node API (#80)

* Fix init signature according to Node API

See https://github.com/status-im/nim-waku/blob/master/docs/api/v2/node.md

* Update docs and example
This commit is contained in:
Oskar Thorén
2020-07-28 16:06:00 +08:00
committed by GitHub
parent 75d7d4780e
commit 1ca3962e8d
3 changed files with 24 additions and 35 deletions
+1 -2
View File
@@ -16,8 +16,7 @@ five method are:
proc init*(conf: WakuNodeConf): Future[WakuNode]
## Creates and starts a Waku node.
##
## Status: Partially implemented.
## TODO Take conf as a parameter and return a started WakuNode
## Status: Implemented.
method subscribe*(w: WakuNode, topic: Topic, handler: TopicHandler)
## Subscribes to a PubSub topic. Triggers handler when receiving messages on