Franck R
160fea0e7b
Waku.dial accepts protocols expected from the peer. Defaults to Waku Relay only. (#516 )
2022-02-13 19:04:50 +11:00
Franck R
4c80f7f0df
Remove odd prettier config ( #500 )
2022-02-04 14:12:00 +11:00
Franck R
b257885204
test: Fix flackiness ( #474 )
2022-02-01 12:54:54 +11:00
Franck R
47c5565371
Wait for heartbeat before considering relay peer ready ( #472 )
2022-01-31 15:30:49 +11:00
Franck R
34e4cbba73
Use websocket instead of tcp in interop tests ( #418 )
2022-01-20 13:00:58 +11:00
Franck R
cba5212872
Upgrade nim-waku to v0.7 ( #417 )
2022-01-19 15:43:45 +11:00
Franck Royer
1d48dc4372
Rename all pubsubTopic occurrences to pubSubTopic
2021-08-20 10:13:02 +10:00
Franck Royer
60290e8d84
Moved DefaultPubSubTopic to waku.ts and fixed the casing
...
The pubsub topic is used by several protocol, not just relay.
2021-08-20 10:12:55 +10:00
Franck Royer
dcdab3203d
Replace nim-waku log grep with new pattern
2021-08-09 12:27:22 +10:00
Franck Royer
c14951cb0e
Increase timeout for nim-waku starts
...
Took 5 seconds in CI run.
2021-08-09 11:58:58 +10:00
Franck Royer
d035359616
Workaround the fact that ni-waku does not accept integers as timestamp
2021-08-05 13:32:37 +10:00
Franck Royer
6817a2f6b2
Pass timestamp to RPC call
2021-07-26 11:32:50 +10:00
Franck Royer
13c8a0527b
Test symmetric encryption with nim-waku using relay
2021-07-15 12:12:43 +10:00
Franck Royer
f123cd7e62
Test asymmetric encryption against nim-waku
2021-07-09 15:50:16 +10:00
Franck Royer
f95d9aec3c
Add version 1 support to waku relay, test decryption against nim-waku
2021-07-09 15:50:16 +10:00
Franck Royer
34e6ac5247
Add version 1 support to WakuMessage
2021-07-09 15:50:15 +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
de3aea626a
Implement Light Push protocol
2021-05-19 12:29:29 +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
50eaa39fec
Add debug statement in tests
...
Also enable debug logs in CI.
2021-05-10 20:18:26 +10:00
Franck Royer
de3dcd9e22
Improve test readability
...
By avoiding buffer comparison.
2021-05-10 14:10:37 +10:00
Franck Royer
21414ad55e
Upgrade nim-waku to latest version
2021-05-07 11:30:36 +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
Franck Royer
afba3210e9
Upgrade libp2p to 0.31.0-rc.3
2021-04-21 16:17:32 +10:00
Franck Royer
b38634fd14
Remove warnings
2021-04-13 15:25:00 +10:00
Franck Royer
e9d51a6c57
Implement Waku store protocol
2021-04-09 16:54:30 +10: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
Franck Royer
78292c471a
Enable nim-waku trace logs
2021-04-09 11:23:00 +10:00
Franck Royer
433a490dec
Move waku relay codec and default topic to constants module
2021-04-01 16:41:49 +11:00
Franck Royer
5a967ecbcc
Avoid possible type name clash between js-waku and consuming apps
...
`Message` is a very generic name and JS does not offer strong namespace
boundaries. Using `WakuMessage` avoid name clashing with classes
of the consumer app.
2021-04-01 11:18:35 +11:00
Franck Royer
46c41dc50f
Test connection triggered from js and add API
2021-03-29 15:08:31 +11:00
Franck Royer
c4d3c7fb47
Update nim-waku, 0x now optional in RPC requests
2021-03-29 14:25:03 +11:00
Franck Royer
e99d1c012c
Add logs to track nim-waku process
2021-03-26 13:09:44 +11:00
Franck Royer
4473ad4cc7
Add tests where js initialize the connection to nim
2021-03-25 20:47:48 +11:00
Franck Royer
c491b65edc
Handle nim-waku process exit & error
2021-03-25 20:09:33 +11:00
Franck Royer
ee0c63eba3
Improve helper function for log name
2021-03-25 15:49:07 +11:00
Franck Royer
27c3668121
Use --exit to force termination of node after tests
2021-03-22 21:36:44 +11:00
Franck Royer
704f2770d1
Use ts-proto
...
This allows the generation of ts files which makes it easier
to handle with test frameworks than just d.ts files
2021-03-22 15:49:58 +11:00
Franck Royer
090b064c84
Kill nim-waku & js-libp2p nodes after tests
2021-03-22 14:24:01 +11:00
Franck Royer
fe7daebbb0
Payload is now always a buffer
2021-03-15 16:26:07 +11:00
Franck Royer
3115874a05
Make testing in CI possible
...
By adding nim-waku as a submodule and building it as part of the tests.
2021-03-15 16:22:26 +11:00
Franck Royer
a6cbdf3117
Segregate logs files in single directory
2021-03-15 13:38:36 +11:00
Franck Royer
c99e02af20
Allow waiting for nim waku logs from test
2021-03-15 13:25:14 +11:00
Franck Royer
fdbcbe0896
Allow multiple wakunodes to be started in parallel
2021-03-12 17:08:59 +11:00
Franck Royer
27c433f750
Test hex conversion functions
2021-03-12 10:44:47 +11:00
Franck Royer
ee38df8757
Nim-interop: nim sends message (not working)
2021-03-12 10:35:50 +11:00
Franck Royer
f0c9c3ef50
Check peer ids on both side when connecting
2021-03-11 15:02:29 +11:00