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
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
e534e0a4c8
Do not rely on nim-waku trace logs for test purposes
2021-04-13 09:51:41 +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
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
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
Franck Royer
ed5a363096
Ensure that heartbeat checks for waku, and not gossipsub, peers
2021-04-01 16:18:06 +11:00
Franck Royer
95b88d2815
Check against gossipsub protocol was also done in publish
...
Meaning it would sometimes fail to recognize another waku node at
a subscriber of a topic, depending on timing with the `subscribe`
call.
2021-04-01 15:47:34 +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
f15f4ff7f2
Reference GitHub issues
2021-04-01 11:15:51 +11:00
Franck Royer
58838ec898
Custom nick
2021-04-01 11:01:15 +11:00
Franck Royer
cca1d685dc
Implement chat message protobuf to support nick and time handles
2021-04-01 11:01:15 +11:00
Franck Royer
0b282be882
Move chat folder inside src
2021-04-01 11:01:15 +11:00
Franck Royer
c3cf6462cc
Pass listening addresses as argument
2021-04-01 11:01:14 +11:00
Franck Royer
d2f1995f3e
Can receive message over internet
2021-04-01 11:01:14 +11:00
Franck Royer
2b450cf2dd
Include js>nim>js test
2021-04-01 11:01:14 +11:00
Franck Royer
086623243e
Remove `StrictSign` hack
2021-04-01 11:01:14 +11:00
Franck Royer
f2c1c92353
Chat app example
2021-04-01 11:01:14 +11:00
Franck Royer
e167f4fba4
Decode payload to utf8 string
2021-03-29 15:08:31 +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
a57f361b1e
Print log file name on failure
2021-03-26 13:09:44 +11:00
Franck Royer
1d248351c1
Wait a bit before subscribing
2021-03-26 13:09:44 +11:00
Franck Royer
e99d1c012c
Add logs to track nim-waku process
2021-03-26 13:09:44 +11:00
Franck Royer
e7ad81afee
Re-add Publish test
2021-03-26 09:37:01 +11:00
Franck Royer
4f58bde054
Add js to js subscribe test
2021-03-26 09:37:01 +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
e89b4ca437
Override Gossipsub.join` function to consider waku peers
...
Instead of gossipsub peers, this allows js to publish messages to nim.
2021-03-24 12:22:00 +11:00
Franck Royer
71f3e9aa1f
Name logs with test name only
2021-03-24 12:22:00 +11:00
Franck Royer
2486071708
Reduce entropy usage in tests
...
When playing around with tests frameworks, it was noticed that noise
was using entropy that lead to handles remaining open at the end of the
test run.
2021-03-22 22:25:13 +11:00
Franck Royer
08a7f004c3
Missing protocols in identify message are now present
...
status-im/nim-waku/issues/419 has been fixed.
2021-03-22 22:05:18 +11:00
Franck Royer
27c3668121
Use `--exit` to force termination of node after tests
2021-03-22 21:36:44 +11:00
Franck Royer
d1e8ba2c6e
Finish conversion to mocha
2021-03-22 16:02:10 +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
a89f2700a2
Partial conversion to ts-node/mocha
2021-03-22 15:05:03 +11:00
Franck Royer
090b064c84
Kill nim-waku & js-libp2p nodes after tests
2021-03-22 14:24:01 +11:00
Franck Royer
13e941513d
Reorg tests, add describe sections
2021-03-19 15:55:38 +11:00
Franck Royer
7d595b0c8f
Move waku relay tests in dedicated file
2021-03-19 15:55:38 +11:00
Franck Royer
39332808d5
Improve API by using composition
2021-03-19 14:40:16 +11:00
Franck Royer
345a2ba7b3
Skip failing test
...
Investigation is harder that first thought.
Skipping this so we can track a green CI and not introduced more bugs
by mistake.
2021-03-19 10:41:40 +11:00
Franck Royer
5c29394937
Migrate to jest for better debugging experience
...
ava is not yet integrated in popular IDEs.
2021-03-17 15:34:58 +11:00
Franck Royer
33a6176181
pubsub config is specific to waku relay
2021-03-17 14:30:35 +11:00
Franck Royer
eb06f056c0
Work around nim-waku signing policy bug
2021-03-16 15:41:44 +11:00
Franck Royer
b2632af04b
Remove fixed time delays
2021-03-16 13:45:18 +11:00
Franck Royer
953aeea053
Implement reception of messages over waku-relay
2021-03-16 13:39:34 +11:00
Franck Royer
b53bf4ddca
Correct comment
2021-03-15 17:57:31 +11:00
Franck Royer
4c34420ccc
Remove TODO
2021-03-15 17:53:24 +11:00
Franck Royer
f0233f7696
Manually patch identify protocol
2021-03-15 17:29:48 +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
e3a488bbf5
Fix spelling
2021-03-15 15:45:41 +11:00
Franck Royer
6558ac60bb
Force identify nim node to support waku protocol
2021-03-15 15:34:56 +11:00
Franck Royer
a6cbdf3117
Segregate logs files in single directory
2021-03-15 13:38:36 +11:00
Franck Royer
548c50668a
test: Send message from js node to nim node
2021-03-15 13:27:50 +11:00
Franck Royer
c99e02af20
Allow waiting for nim waku logs from test
2021-03-15 13:25:14 +11:00
Franck Royer
b7ce121955
Replace delay by waiting on correct event
2021-03-15 11:35:30 +11:00
Franck Royer
eb874a956b
Only node receiving message needs to subscribe
2021-03-15 11:23:20 +11:00
Franck Royer
4c6c54cf87
Nim node subscribes to default topic as soon as it connects to js node
2021-03-15 10:28:32 +11:00
Franck Royer
fdbcbe0896
Allow multiple wakunodes to be started in parallel
2021-03-12 17:08:59 +11:00
Franck Royer
a0d6784e3c
Use multiaddr lib instead of string parsing
2021-03-12 17:08:58 +11:00
Franck Royer
a7c666f108
Fix WakuMessage (de)serialisation
2021-03-12 17:08:58 +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
8ed47b2cf7
Nim-interop: subscribe
...
At this stage, we are only able to check that the
subscription works on js side: it confirms that
the nim node is considered as subscribing to the same
topic.
2021-03-12 09:46:47 +11:00
Franck Royer
f0c9c3ef50
Check peer ids on both side when connecting
2021-03-11 15:02:29 +11:00
Franck Royer
057f5f80ab
test: Nim-waku connects to JS (success)
2021-03-11 11:11:37 +11:00
Franck Royer
a6c1fae5a6
test: Nim-waku connects to JS (wip)
2021-03-11 10:54:35 +11:00
Franck Royer
4f63bd5835
test: Connect to nim waku
2021-03-10 17:39:53 +11:00
Franck Royer
b8c63355a5
Ensure waku relay node does not use a sub protocol
...
At the moment we do not assert that we publish messages over waku relay
protocol (not sure this assertion is possible).
By asserting we do not register any sub (pubsub, gossipsub, floodsub)
protocols, we can be (more) confident that this
protocols are not be used behind the scenes.
2021-03-10 16:25:54 +11:00
Franck Royer
4329b8006e
Use waku messages over waku relay
2021-03-10 16:22:49 +11:00
Franck Royer
070847d2c0
Use waku relay interface to subscribe and publish messages
2021-03-10 15:15:36 +11:00
Franck Royer
12c2a93c7f
Register waku protocol instead of gossip sub
2021-03-10 15:08:27 +11:00
Franck Royer
525815528f
Remove message signing as per waku specs
2021-03-10 14:58:04 +11:00
Franck Royer
b5bf5c03ab
Reduce test verbosity
2021-03-10 14:56:12 +11:00
Franck Royer
dfe08058d9
Use promises to remove one delay
2021-03-10 14:55:16 +11:00
Franck Royer
8e91ca6d01
Adopt more typescript-y syntax, do not lint generated files
2021-03-10 14:30:31 +11:00
Franck Royer
5e64708111
Can use gossipsub to publish messages
2021-03-10 14:24:23 +11:00
Franck Royer
be47223bae
Connects to nim-waku using waku-relay protocol
2021-03-05 14:41:20 +11:00
Franck Royer
f46ce77f57
Initial commit
...
Created with bitjson/typescript-starter@586cdb3029
2021-03-05 09:34:01 +11:00