539 Commits

Author SHA1 Message Date
Franck Royer
e91f7933c9
Pass proto in constructor
Makes the relation between the protobuf class and the wrapper more
direct. Conversion only happens at creates or on getters.
2021-05-10 16:29:25 +10:00
Franck Royer
3b7fc44419
Remove Proto suffix
Manage with namespace instead.
2021-05-10 15:53:23 +10:00
Franck Royer
ba6b67cc53
Enable observers to filter by contentTopic 2021-05-10 14:54:08 +10:00
Franck Royer
de3dcd9e22
Improve test readability
By avoiding buffer comparison.
2021-05-10 14:10:37 +10:00
Franck Royer
71a5b23bd2
Add observer interface that directly pass waku messages 2021-05-10 12:38:44 +10:00
Franck Royer
ace5f2776f
Prefer camel case for module constants 2021-05-10 12:38:44 +10:00
Franck Royer
cbe9559096
Clarify what methods should be used 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
abd5709f86
Move cli chat to examples folder 2021-05-05 10:53:40 +10:00
Franck Royer
906d118d7d
Remove empty file 2021-05-05 09:59:36 +10:00
Franck Royer
19d6459883
Move chat message in js-waku 2021-05-05 09:59:19 +10:00
Franck Royer
de57b2691e
Only the result property is ever used 2021-05-04 11:12:32 +10:00
Franck Royer
9e30627e2b
Force return types to be specified
Makes it easier to use the library. Best to enforce this early on.
2021-05-04 11:12:32 +10:00
bors[bot]
3ae782d3b4
Merge #118 #121 #122
118: Clean up WakuMessage API r=D4nte a=D4nte



121: Always trigger store query at connection r=D4nte a=D4nte

If no new messages are received, the rendering does not change
as dupe messages are filtered out.

122: Use provided API r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2021-05-04 00:26:12 +00:00
Franck Royer
d0020744b4
Use provided API 2021-05-04 10:23:31 +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
5664c14743
Check subscribers until it finds one 2021-04-29 16:38:50 +10:00
Franck Royer
0270003556
Increase test timeouts 2021-04-29 16:07:37 +10:00
Franck Royer
2c66f86e91
Upgrade libp2p packages 2021-04-29 12:06:38 +10:00
Franck Royer
69a3f73ee6
Self emit to see own messages 2021-04-22 14:47:43 +10:00
Franck Royer
09fa8a0447
Must pass filter.all to connect to ip4 ws peer 2021-04-22 10:39:05 +10:00
Franck Royer
df5a4f8326
waku is undefined 2021-04-21 16:17:32 +10:00
Franck Royer
afba3210e9
Upgrade libp2p to 0.31.0-rc.3 2021-04-21 16:17:32 +10:00
Franck Royer
bf11d76a93
Log in error raised by question 2021-04-21 09:57:21 +10:00
Franck Royer
dd0a843770
Upgrade ts-proto to fix long dependency warning/error 2021-04-20 16:11:53 +10:00
Franck Royer
ee6226bd32
Update waku store as per the latest spec 2021-04-20 15:38:40 +10:00
Franck Royer
0241d9edf3
Catch nick promise failure 2021-04-20 15:32:10 +10:00
Franck Royer
4542e01f0e
Check in protobuf generated files
So that developers do not have to install protobuf suite by default.
2021-04-20 15:32:10 +10: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
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
Franck Royer
4b31a6aaba
Wait for identify protocol to finish when dialing
Removes most `delay()`.
2021-04-13 22:43:13 +10:00
Franck Royer
b38634fd14
Remove warnings 2021-04-13 15:25:00 +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