Commit Graph

1269 Commits

Author SHA1 Message Date
bors[bot] 5d71cb2969
Merge #37
37: Use peerStore event to determine if identify is done & Auto-subscribe r=D4nte a=D4nte




Co-authored-by: Franck Royer <franck@royer.one>
2021-04-20 05:26:29 +00:00
Franck Royer 6ee404c3ce
Skip the js-nim-js test as it fails in CI 2021-04-20 15:26:01 +10:00
Franck Royer eec55b7b71
Add sleep for failing tests + logging 2021-04-20 15:15:18 +10:00
Franck Royer 818a8256e7
Wait for identify protocol to finish 2021-04-20 10:34:23 +10:00
Franck Royer 00e303ee0a
Increase test timeout 2021-04-20 10:13:13 +10:00
Franck Royer e233ad8da4
Increase test timeouts 2021-04-20 09:38:30 +10:00
Franck Royer e0debac165
Subscribe to default topic when starting, Remove dual Waku relay classes 2021-04-16 11:25:08 +10:00
Franck Royer bc1ba3f4e4
Increase test timeout 2021-04-15 15:24:01 +10:00
Franck Royer 896462340a
Simplify API
At this stage, if waku relay is mounted then we always want to subscribe
to default topic.

We can re-introduce the flexibility once we know what matters to the user.

Resolves #17.
2021-04-15 14:45:14 +10:00
Franck Royer 9a305033bc
Use peerStore event to determine if identify is done 2021-04-15 14:44:35 +10:00
bors[bot] 9d64ac84ad
Merge #36
36: Add websocket transport r=D4nte a=D4nte

Resolves #34 

Co-authored-by: Franck Royer <franck@royer.one>
2021-04-15 04:35:32 +00:00
Franck Royer 503157401e
Allow passing transports, enable websocket transport 2021-04-15 13:56:07 +10:00
Franck Royer 1a813256e9
Start Waku first
So that even if the user does not enter a nick, the chat app
already acts as a waku node.
2021-04-15 13:56:07 +10:00
Franck Royer 31a45bf44e
Group imports 2021-04-15 13:56:07 +10:00
Franck Royer 1a4407b4f5
Increase test timeout 2021-04-15 13:56:06 +10:00
bors[bot] d2c8d72c3e
Merge #35
35: Always enable trace logs for nim-waku and remove color r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@royer.one>
2021-04-15 00:42:29 +00:00
Franck Royer 79382865e6
Always enable trace logs for nim-waku and remove color 2021-04-15 09:41:16 +10:00
bors[bot] 6883b6f27d
Merge #33
33: Update readme to point developers to right forums r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@royer.one>
2021-04-14 00:24:18 +00:00
Franck Royer 2581b56458
Update readme to point developers to right forums 2021-04-14 10:23:32 +10:00
bors[bot] 707a019faa
Merge #32
32: Wait for identify protocol to finish when dialing r=D4nte a=D4nte

Resolves #18

Co-authored-by: Franck Royer <franck@royer.one>
2021-04-13 12:44:31 +00:00
Franck Royer 4b31a6aaba
Wait for identify protocol to finish when dialing
Removes most `delay()`.
2021-04-13 22:43:13 +10:00
bors[bot] 41fa29feac
Merge #31
31: Remove warnings r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@royer.one>
2021-04-13 05:25:23 +00:00
Franck Royer b38634fd14
Remove warnings 2021-04-13 15:25:00 +10:00
bors[bot] 09d89ebd78
Merge #30
30: Implement pagination for waku store r=D4nte a=D4nte

Resolve #29 

Co-authored-by: Franck Royer <franck@royer.one>
2021-04-13 05:05:16 +00: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
bors[bot] 2b1862320f
Merge #28
28: Upgrade to latest nim-waku master commit r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@royer.one>
2021-04-13 00:57:01 +00:00
Franck Royer ef409bd89b
Upgrade to latest nim-waku commit 2021-04-13 10:36:22 +10:00
Franck Royer e534e0a4c8
Do not rely on nim-waku trace logs for test purposes 2021-04-13 09:51:41 +10:00
bors[bot] 29a3ec403c
Merge #27
27: Implement Waku Store protocol r=D4nte a=D4nte

Resolves #21 

Co-authored-by: Franck Royer <franck@royer.one>
2021-04-09 06:55:14 +00:00
Franck Royer e9d51a6c57
Implement Waku store protocol 2021-04-09 16:54:30 +10:00
bors[bot] 3333a9c6c0
Merge #24
24: Remove noisy test logs r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@royer.one>
2021-04-09 06:19:36 +00:00
Franck Royer 79a9520348
Test cleanup 2021-04-09 16:05:43 +10:00
Franck Royer eb9f1c154b
Remove noisy test logs 2021-04-09 16:05:02 +10:00
bors[bot] ef6285a451
Merge #26
26: Provide status on waku protocol support r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@royer.one>
2021-04-09 06:04:57 +00:00
Franck Royer 9360159763
Provide status on waku protocol support 2021-04-09 16:04:29 +10:00
bors[bot] 71a324dd3c
Merge #25
25: Upgrade nim-waku r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@royer.one>
2021-04-09 01:58:31 +00:00
Franck Royer 5c2b10badd
Switch nim-waku submodule to `revert-debug` branch 2021-04-09 11:24:46 +10:00
Franck Royer 78292c471a
Enable nim-waku trace logs 2021-04-09 11:23:00 +10:00
Franck Royer 27540fae47
Remove dupe test 2021-04-09 10:47:29 +10:00
Franck Royer 5bc6173cb8
Upgrade nim-waku 2021-04-08 22:32:36 +10:00
bors[bot] 3be57632f7
Merge #22
22: Fix js to js test r=D4nte a=D4nte

Several flows in gossipsub check against the peer's protocol. We need to override these instances to ensure it checks against waku relay protocol instead.

Fixes #7.

Co-authored-by: Franck Royer <franck@royer.one>
2021-04-01 07:34:18 +00:00
Franck Royer ff8e96b60c
Clean up imports 2021-04-01 18:27:15 +11:00
Franck Royer ff9bfa7f0a
Override gossipsub function that checked for gossipsub peers
Instead, we need to check for waku relay peers.
2021-04-01 16:58:26 +11:00
Franck Royer b487e7803b
Returns waku relay peers, not all waku peers across the various protocols 2021-04-01 16:44:28 +11:00
Franck Royer 433a490dec
Move waku relay codec and default topic to constants module 2021-04-01 16:41:49 +11:00
Franck Royer 7bd48b6220
Move all relay files under common folder 2021-04-01 16:37:05 +11:00