Commit Graph

809 Commits

Author SHA1 Message Date
Franck Royer b828f7773c
Add helpers to test examples
Keep a separate CI task.
2021-08-02 14:11:05 +10:00
Franck Royer ed14311174
Run test tasks in parallel 2021-08-02 14:03:41 +10:00
Franck Royer 8aadaacc54
Merge pull request #245 from status-im/guides 2021-08-02 13:35:32 +10:00
Franck Royer 495827ed63
Rephrased 2021-08-02 12:26:07 +10:00
Franck Royer 499b3e7cc0
Touch up 2021-08-02 12:22:18 +10:00
Franck Royer dbc6662082
Touch up 2021-08-02 12:22:18 +10:00
Franck Royer ef27afbbf9
Fix voca 2021-08-02 12:00:28 +10:00
Franck Royer 7b87ece951
Add ReactJS Relay to guide menu 2021-08-02 11:59:24 +10:00
Franck Royer 5a4f7d4468
Test by building
Cannot run react-scripts test with libp2p
due to
https://github.com/libp2p/js-libp2p/issues/961
2021-08-02 11:04:41 +10:00
Franck Royer f0fe7dce02
Fix TextDecoder error in tests 2021-08-02 10:45:11 +10:00
Franck Royer 7d9f8c03c1
Move protocol support after examples 2021-08-02 10:45:11 +10:00
Franck Royer 975fb6245a
Run CI for min js web chat example 2021-08-02 10:45:10 +10:00
Franck Royer 943b1c2456
Add ReactJS Relay guide 2021-08-02 10:45:10 +10:00
Franck Royer f95e52c2ea
Remove reducer, fix timestamp 2021-08-02 10:45:10 +10:00
Franck Royer 2306bb1708
Add breakdown of what examples demonstrate
Also move explanation to each readme.
2021-08-02 10:45:10 +10:00
Franck Royer 8a1babac6f
Fix capitalized titles 2021-08-02 10:45:10 +10:00
Franck Royer b92b9009b9
Add choose content topic guide 2021-08-02 10:45:09 +10:00
Franck Royer 2dd399d6c6
Run Hemingway app 2021-08-02 10:45:09 +10:00
Franck Royer 97042388b2
Fix odd format 2021-08-02 10:45:09 +10:00
Franck Royer 1f370ae53e
Use protobuf 2021-08-02 10:45:09 +10:00
Franck Royer 3b71fd0b26
Show payload as utf8 usage 2021-08-02 10:45:09 +10:00
Franck Royer 7c715d8fa7
Display messages 2021-08-02 10:45:09 +10:00
Franck Royer 8a7f2401ea
Process incoming messages 2021-08-02 10:45:08 +10:00
Franck Royer 7c5382dfff
Send message 2021-08-02 10:45:08 +10:00
Franck Royer 3f6497634f
Bootstrap 2021-08-02 10:45:08 +10:00
Franck Royer 2ae9a6ca00
Create Waku 2021-08-02 10:45:08 +10:00
Franck Royer 1e64ac8f7c
create react app min-js-web-chat 2021-08-02 10:45:08 +10:00
Franck Royer a3b7e37d8b
Merge pull request #249 from status-im/utf8
Fixed `payloadAsUtf8` returning garbage on utf-8 non-ascii characters
2021-08-02 10:44:45 +10:00
Franck Royer 45dc8f81c9
Fixed `ChatMessage.payloadAsUtf8` returning garbage on utf-8 non-ascii 2021-08-02 10:36:50 +10:00
Franck Royer 1f692f1683
Fixed `payloadAsUtf8` returning garbage on utf-8 non-ascii characters 2021-08-02 09:51:37 +10:00
Franck Royer 159a352088
Merge pull request #248 from status-im/fix-web-chat
Limit store retrievals
2021-07-29 20:05:07 +10:00
Franck Royer d307342f7e
Simplify message handling to avoid re-rendering
Only retrieve historical messages when starting the app.

This allows avoid re-rendering issues. This is an example dApp. No need
to waste time on React optimisation.
2021-07-29 17:23:03 +10:00
Franck Royer b4a440cb03
Merge pull request #247 from status-im/update-chats
Update discussion channels
2021-07-28 20:59:56 +10:00
Franck Royer a5e91b3269
Update discussion channels 2021-07-28 17:12:03 +10:00
Franck Royer aede51f752
Merge pull request #244 from status-im/remove-default-content-topic 2021-07-28 12:34:06 +10:00
Franck Royer 9aaac20981
Examples: Content Topic moved out of options parameter 2021-07-28 12:03:51 +10:00
Franck Royer 0cfdd34284
Removed `DefaultContentTopic`
As developers must choose a content topic for their app.
The`WakuMessage` APIs have been changed to move `contentTopic` out of
the optional parameters. Recommendations for content topic can be found
at https://rfc.vac.dev/spec/23/.
2021-07-28 12:03:51 +10:00
Franck Royer 5e056d8b81
Shorten imports, remove warning 2021-07-28 11:58:05 +10:00
Franck Royer 53ef23362c
Remove faulty fleet feature
It does not work as it can lead to infinite loops due to the handling of
the Waku instance. It should disconnect and reconnect to peers instead
of starting a new waku instance.
2021-07-28 11:58:02 +10:00
Franck Royer b61e7311af
Merge pull request #243 from status-im/185-idle-stream-abort 2021-07-27 16:42:02 +10:00
Franck Royer 9638f6db10
Introduced new `relayKeepAlive` option
..on `Waku` with a default to 5min to send ping messages over relay
to ensure the relay stream stays open.

This is a workaround until
[js-libp2p#744](https://github.com/libp2p/js-libp2p/issues/744) is done
as there are issues when TCP(?) timeouts and the stream gets closed.
2021-07-27 16:24:04 +10:00
Franck Royer ea33b9cd8a
Rename `keepAlive` option to `pingKeepAlive`
In preparation for introducing a relay keep alive feature.
2021-07-27 16:06:57 +10:00
Franck Royer 664e5f56a1
Merge pull request #241 from status-im/upgrade-libp2p
Upgrade to libp2p 0.32.0
2021-07-27 14:50:34 +10:00
Franck Royer 36a5a51aa8
Upgrade to libp2p 0.32.0 2021-07-27 14:31:06 +10:00
Franck Royer 5a6e4adf35
Merge pull request #242 from status-im/release/0.9.0
Release 0.9.0
2021-07-26 20:22:45 +10:00
Franck Royer c35fe74dad
Release 0.9.0
### Changed
- **Breaking**: Store Response Protobuf changed to align with
  nim-waku v0.5
  ([nim-waku#676](https://github.com/status-im/nim-waku/pull/676)).
2021-07-26 16:49:30 +10:00
Franck Royer 4a85e62c80
Merge pull request #237 from status-im/nim-waku-v0.5 2021-07-26 14:30:51 +10:00
Franck Royer c4d0501c6a
nim-waku v0.5 uses new waku relay protocol id 2021-07-26 11:35:08 +10:00
Franck Royer 5f7eee394b
Store Response Protobuf change to align with nim-waku
status-im/nim-waku#676
2021-07-26 11:35:08 +10:00
Franck Royer 6817a2f6b2
Pass timestamp to RPC call 2021-07-26 11:32:50 +10:00