29 Commits

Author SHA1 Message Date
Franck Royer
d68ee3fb74
New peers and randomPeer methods to return available peers 2021-07-12 13:15:19 +10:00
Franck Royer
34e6ac5247
Add version 1 support to WakuMessage 2021-07-09 15:50:15 +10:00
Franck Royer
939b5fb20a
Auto select peer if none provided for store and light push protocols 2021-06-16 23:51:20 +10:00
Franck Royer
5ce0717f05
Enable passing a custom pubsub topic
Note that we currently only support one, and only one, pubsub topic for
a given instance across the codebase. The PubSub topic needs to be set
when instantiating the Waku* classes.

At this stage, we believe that most DApp will use, and only use, the
default PubSub topic. Some application want to use an alternative topic
but not use the default one so this behaviour should be fine. See #174
for details.
2021-06-09 15:00:03 +10:00
Franck Royer
f0f14f9995
Rename type before introducing CreateOptions 2021-06-09 15:00:03 +10:00
Franck Royer
f17a008278
Separate the libp2p create options from Waku's 2021-06-09 15:00:02 +10:00
Franck Royer
fb7e9f2b9e
Get messages from store in chronological order 2021-05-19 12:29:29 +10:00
Franck Royer
243b6629c3
Add callback option to store query 2021-05-17 16:32:34 +10:00
Franck Royer
4b6fe84392
Use one object as we are increasing the number of parameters 2021-05-17 16:32:33 +10:00
Franck Royer
eb9955314c
Align terminology with specs
In specs, this is referenced as a `pubsubTopic`.
2021-05-13 20:48:30 +10:00
Franck Royer
40fd7ff365
Use Typedoc comment style 2021-05-11 09:06:22 +10:00
Franck Royer
3663ce260d
Rework exports for an easy use of the library 2021-05-10 16:41:58 +10:00
Franck Royer
ace5f2776f
Prefer camel case for module constants 2021-05-10 12:38:44 +10:00
Franck Royer
21414ad55e
Upgrade nim-waku to latest version 2021-05-07 11:30:36 +10:00
Franck Royer
d19be03862
Ensure that rpc call to send messages is successful 2021-05-07 11:30:35 +10:00
Franck Royer
775a288a5c
Log more around usage of waku store 2021-05-07 10:41:38 +10:00
Franck Royer
0ff0e6ee7b
Clean up WakuMessage API 2021-05-03 16:26:02 +10:00
Franck Royer
1016e85f70
Enable pubsub topic filter in history queries
Resolves #78
2021-04-29 16:52:55 +10:00
Franck Royer
ee6226bd32
Update waku store as per the latest spec 2021-04-20 15:38:40 +10:00
Franck Royer
9a305033bc
Use peerStore event to determine if identify is done 2021-04-15 14:44:35 +10:00
Franck Royer
503157401e
Allow passing transports, enable websocket transport 2021-04-15 13:56:07 +10:00
Franck Royer
4b31a6aaba
Wait for identify protocol to finish when dialing
Removes most `delay()`.
2021-04-13 22:43:13 +10:00
Franck Royer
ee8db698b3
Allow constant condition for loops 2021-04-13 15:03:14 +10:00
Franck Royer
0e9b0b1b74
Ensure store waku calls returns messages in chronological order
Oldest at the start of the list.
2021-04-13 15:02:56 +10:00
Franck Royer
433f0432b3
Use pagination to retrieve all results from store 2021-04-13 15:02:53 +10:00
Franck Royer
1e10eeb5f5
Change API to directly return array of Waku Messages 2021-04-13 12:51:04 +10:00
Franck Royer
59df437490
test: History messages through several pages are retrieved 2021-04-13 11:47:15 +10:00
Franck Royer
ef409bd89b
Upgrade to latest nim-waku commit 2021-04-13 10:36:22 +10:00
Franck Royer
e9d51a6c57
Implement Waku store protocol 2021-04-09 16:54:30 +10:00