mirror of
https://github.com/logos-messaging/specs.git
synced 2026-06-07 04:39:30 +00:00
Update qaku.md
This commit is contained in:
parent
c370dfbd73
commit
4ed8bf79e1
@ -44,18 +44,29 @@ The owner MUST be able to enable and disable questions added to the board.
|
|||||||
|
|
||||||
### Node
|
### Node
|
||||||
|
|
||||||
|
The Qaku application SHOULD connect to the default Waku `pubsub_topic`.
|
||||||
|
When a user accesses the Qaku app,
|
||||||
|
the user joins a new session that SHOULD create a new `content_topic`.
|
||||||
|
When the user exits the Qaku app,
|
||||||
|
the session ends but the `content_topic` remians available on the Waku network for other users to connect to.
|
||||||
|
|
||||||
Qaku uses the following [10/WAKU]() protocols:
|
Qaku uses the following [10/WAKU]() protocols:
|
||||||
|
|
||||||
- the [19/WAKU2-LIGHTPUSH](https://github.com/vacp2p/rfc-index/blob/main/waku/standards/core/19/lightpush.md) to push a message type to the Waku network.
|
- the [19/WAKU2-LIGHTPUSH](https://github.com/vacp2p/rfc-index/blob/main/waku/standards/core/19/lightpush.md) to push a message type to the Waku network.
|
||||||
- the [12/WAKU2-FILTER]() to subscribe to Waku `content_topic` and listen to messages published to that topic.
|
- the [12/WAKU2-FILTER]() to subscribe to Waku `content_topic` and listen to messages published to that topic.
|
||||||
- the [13/WAKU-STORE]()
|
- the [13/WAKU-STORE]() to query and load old messages from the Waku network for users.
|
||||||
- A new `content_topic` is created when a new Q&A board is created.
|
- A new `content_topic` is created when a new Q&A board is created.
|
||||||
- All questions and answer are pushed to the content_topic
|
- All questions and answer are pushed to the content_topic
|
||||||
|
|
||||||
### Messages
|
### Messages
|
||||||
|
|
||||||
The Waku network processes real-time message updates, which enables new questions and
|
The Waku network processes real-time message updates, which enables new questions and
|
||||||
answers to be acceisble quickly.
|
answers to be acceisble quickly.
|
||||||
Messages sent to a `content_topic` are identified by a `message_type`.
|
A conec ulti
|
||||||
|
Messages are sent to a `content_topic` that are identified as a `message_type`.
|
||||||
|
|
||||||
|
The [13/WAKU-STORE]() nodes provide historical storage of the Qaku messages.
|
||||||
|
|
||||||
The following `message_type`s used in Qaku include:
|
The following `message_type`s used in Qaku include:
|
||||||
|
|
||||||
- Question Message
|
- Question Message
|
||||||
@ -67,7 +78,10 @@ The following `message_type`s used in Qaku include:
|
|||||||
|
|
||||||
#### Question Message
|
#### Question Message
|
||||||
|
|
||||||
The `QuestionMessage` is generated by any user asking a new question on a Qaku board.
|
The `QuestionMessage` type is generated by any user asking a new question on a Qaku board.
|
||||||
|
|
||||||
|
-
|
||||||
|
|
||||||
|
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
@ -83,7 +97,8 @@ The `QuestionMessage` is generated by any user asking a new question on a Qaku b
|
|||||||
|
|
||||||
#### Answered Message
|
#### Answered Message
|
||||||
|
|
||||||
The `Answer
|
The `AnswerMessage` type is generated by any sending an answer to the Qaku board.
|
||||||
|
-
|
||||||
|
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user