Franck Royer
bc544c8e0b
Update Light Push protocol string to match nim-waku v0.4
2021-06-11 14:38:08 +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
eb521b4dbd
Extract subscription logic from start method
2021-06-09 15:00:02 +10:00
Franck Royer
d8629b7fbc
Define type for WakuRelay create options
2021-06-09 15:00:02 +10:00
Franck Royer
f17a008278
Separate the libp2p create options from Waku's
2021-06-09 15:00:02 +10:00
Franck Royer
9e64eec2a6
Enable test encoding and decoding of WakuMessage.timestamp
2021-05-28 22:35:59 +10:00
Franck Royer
3055881c57
Proto message is expected, not the wrapping class
2021-05-28 15:59:57 +10:00
Franck Royer
b13ecdd45f
Do not inherit doc for Waku Relay
...
As it clutters the documentation and at this stage we do not expect
users to use inherited methods.
2021-05-21 11:47:17 +10:00
Franck Royer
c347ec28b4
Ensure that no unnecessary js node are started for interop tests
...
Indeed, the beforeEach/afterEach methods are called for all tests in the
block, including interop tests.
2021-05-20 15:49:13 +10:00
Franck Royer
ed69122ac3
Remove warning
2021-05-19 12:55:39 +10:00
Franck Royer
fb7e9f2b9e
Get messages from store in chronological order
2021-05-19 12:29:29 +10:00
Franck Royer
de3aea626a
Implement Light Push protocol
2021-05-19 12:29:29 +10:00
Franck Royer
2cd87b561d
Expose Enviroment
& Protocol
enums to pass to getStatusFleetNodes
2021-05-18 13:45:49 +10:00
Franck Royer
537a2b73a7
Use prod nodes by default instead of test
2021-05-18 13:26:42 +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
79bef35460
Add and use getStatusFleetNodes
to connect to Status' wakunodes
2021-05-15 19:52:05 +10:00
Franck Royer
a8d4d494f8
Add getPeers method
...
To know if relay messages would be published.
2021-05-13 20:48: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
065593b0cf
Revert naming to js-waku
...
To align with go-waku and nim-waku and keep bors working.
2021-05-13 20:27:38 +10:00
Franck Royer
6f7c1e0ca3
Enhance addPeerToAddressBook
...
So that consumer does not need to import multiaddr and peer-id.
2021-05-13 13:42:40 +10:00
Franck Royer
19e265c490
Remove unneeded variable
2021-05-13 12:30:13 +10:00
Franck Royer
fda65ca83b
Fix documentation
2021-05-13 12:30:13 +10:00
Franck Royer
7c6730b4a3
Remove declare
keyword which removes the values from generated JS
2021-05-11 14:05:13 +10:00
Franck Royer
40fd7ff365
Use Typedoc comment style
2021-05-11 09:06:22 +10:00
Franck Royer
50eaa39fec
Add debug statement in tests
...
Also enable debug logs in CI.
2021-05-10 20:18:26 +10:00
Franck Royer
3663ce260d
Rework exports for an easy use of the library
2021-05-10 16:41:58 +10:00
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