Commit Graph

903 Commits

Author SHA1 Message Date
Franck Royer b4f31dd5e8
Fix typedoc command 2021-05-11 08:58:55 +10:00
bors[bot] cc35941803
Merge #142
142: Add debug statement in tests r=D4nte a=D4nte

Also enable debug logs in CI.

Co-authored-by: Franck Royer <franck@status.im>
2021-05-10 13:31:55 +00:00
Franck Royer 50eaa39fec
Add debug statement in tests
Also enable debug logs in CI.
2021-05-10 20:18:26 +10:00
bors[bot] dcae6c7abf
Merge #140
140: Fix imports r=D4nte a=D4nte

Resolves #112.

Co-authored-by: Franck Royer <franck@status.im>
2021-05-10 09:59:18 +00:00
Franck Royer 3663ce260d
Rework exports for an easy use of the library 2021-05-10 16:41:58 +10:00
Franck Royer 83c17fdcc2
Remove ChatMessage
The aim of this class was to remove the items in the chat list
with duplicate keys. However, the implementation does not achieve this
goal.
2021-05-10 16:35:55 +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
bors[bot] 330caa2525
Merge #139
139: Provide API to process waku messages over relay r=D4nte a=D4nte

Resolves #54

Co-authored-by: Franck Royer <franck@status.im>
2021-05-10 05:44:39 +00: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 54f32bacad
Use new observer interface in examples 2021-05-10 12:38:44 +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
bors[bot] 94353e813e
Merge #133
133: Upgrade nim-waku to latest version r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2021-05-07 01:31:18 +00:00
Franck Royer 21414ad55e
Upgrade nim-waku to latest version 2021-05-07 11:30:36 +10:00
Franck Royer 88eb1eb227
Add command to easily upgrade nim-waku to master HEAD 2021-05-07 11:30:35 +10:00
Franck Royer d19be03862
Ensure that rpc call to send messages is successful 2021-05-07 11:30:35 +10:00
bors[bot] 3f43e8be79
Merge #135
135: Log more around usage of waku store + connect to second node r=D4nte a=D4nte

Resolves #134

Co-authored-by: Franck Royer <franck@status.im>
2021-05-07 00:42:25 +00:00
Franck Royer a6d815974e
Connect to 2 test fleet nodes 2021-05-07 10:41:38 +10:00
Franck Royer 775a288a5c
Log more around usage of waku store 2021-05-07 10:41:38 +10:00
bors[bot] 39a0d38c9e
Merge #130
130: Connect directly to websockify r=D4nte a=D4nte

To avoid websocket timeout issue

Resolves #123 (long term solutions are tracked in separate issues)

Co-authored-by: Franck Royer <franck@status.im>
2021-05-06 05:17:25 +00:00
Franck Royer 381151a29a
Connect directly to websockify
To avoid websocket timeout issue
2021-05-06 11:48:01 +10:00
bors[bot] 85d585d937
Merge #127
127: Move web-chat to examples folder r=D4nte a=D4nte

Resolves #70 

Co-authored-by: Franck Royer <franck@status.im>
2021-05-05 07:48:01 +00:00
Franck Royer 94ff4ca40f
Use one cspell file for all project inc examples 2021-05-05 16:40:23 +10:00
Franck Royer 316edff778
Move web-chat to examples folder 2021-05-05 16:35:14 +10:00
bors[bot] a43e9987ff
Merge #126
126: Ensure that listeners are added only when waku is initialised r=D4nte a=D4nte

this removes the `Reached max listeners` error.

Co-authored-by: Franck Royer <franck@status.im>
2021-05-05 04:42:40 +00:00
Franck Royer 10aafc6cbc
fixup! Connection 2021-05-05 14:32:10 +10:00
Franck Royer f4663ab247
Only add new listeners when waku is initialised 2021-05-05 14:32:09 +10:00
Franck Royer 9c65e590c4
Add streams to /connections response 2021-05-05 14:32:09 +10:00
Franck Royer 42553202a3
Reduce occurrences of dupe keys 2021-05-05 14:32:06 +10:00
Franck Royer 65404c769a
Add /connections command 2021-05-05 14:31:02 +10:00
bors[bot] 4a722dc144
Merge #124
124: Move cli chat to examples folder r=D4nte a=D4nte

Related to #70

Co-authored-by: Franck Royer <franck@status.im>
2021-05-05 01:44:02 +00: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 e1da348fda
Move mocha --exit to config file 2021-05-05 09:59:32 +10:00
Franck Royer 6d699f89f4
Add keywords, correct description and node version 2021-05-05 09:59:27 +10:00
Franck Royer 19d6459883
Move chat message in js-waku 2021-05-05 09:59:19 +10:00
bors[bot] abbbd50512
Merge #116
116: Add few tsconfig rules r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2021-05-04 05:14:40 +00:00
Franck Royer de57b2691e
Only the `result` property is ever used 2021-05-04 11:12:32 +10:00
Franck Royer 656227d431
Remove null-assertion warnings for tests 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 3c8a63cfcd
Format json files 2021-05-04 10:49:14 +10:00
Franck Royer 46f838b379
Add few tsconfig rules 2021-05-04 10:49:13 +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
bors[bot] 323402c22f
Merge #119
119: No need to change Firefox for the web app r=D4nte a=D4nte

Resolves #117

Co-authored-by: Franck Royer <franck@status.im>
2021-05-04 00:10:48 +00:00
Franck Royer 836761143b
Always trigger store query at connection
If no new messages are received, the rendering does not change
as dupe messages are filtered out.
2021-05-04 07:55:35 +10:00
bors[bot] 689f439948
Merge #105
105: Group sequential messages from same sender into single group, reduce CSS padding, and don't repeat sender name and timestamp r=D4nte a=littlealex003

- **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
Feature

- **What is the current behavior?** (You can also link to an open issue here)
Resolves #86 
Name and timestamp are printed for each message
Large amounts of space are used for each message

- **What is the new behavior (if this is a feature change)?**
Name and timestamp are only printed for first message from sender until someone else sends a message
Padding and margin around text eliminated to maximize screen real estate usage


Co-authored-by: Franck Royer <franck@status.im>
2021-05-03 21:54:39 +00:00