This commit is contained in:
alrevuelta 2023-11-07 19:14:56 +01:00
parent 83ee9f31b1
commit 27ba87a7e2
No known key found for this signature in database
GPG Key ID: F345C9F3CCDB886E
3 changed files with 4 additions and 3 deletions

View File

@ -50,7 +50,7 @@ curl http://127.0.0.1:8645/debug/v1/version
curl http://127.0.0.1:8645/debug/v1/info
```
You can publish a message to a `contentTopic` that everyone subscribed to it will receive. Note that `payload` is base64 encoded.
**Publish a message to a `contentTopic`**. Everyone subscribed to it will receive it. Note that `payload` is base64 encoded.
```
curl -X POST "http://127.0.0.1:8645/relay/v1/auto/messages" \
@ -58,7 +58,7 @@ curl -X POST "http://127.0.0.1:8645/relay/v1/auto/messages" \
-d '{"payload":"XaaabsQ==","contentTopic":"/my-app/2/chatroom-1/proto"}'
```
You can fetch all messages sent in that topic.
**Get messages sent to a `contentTopic`**. Note that any store node in the network is used to reply.
```
curl -X GET "http://127.0.0.1:8645/store/v1/messages?contentTopics=%2Fmy-app%2F2%2Fchatroom-1%2Fproto&pageSize=50&ascending=true" \
-H "accept: application/json"

View File

@ -47,6 +47,7 @@ services:
environment:
DOMAIN: ${DOMAIN}
NODEKEY: ${NODEKEY}
KEYSTORE_PASSWORD: ${KEYSTORE_PASSWORD}
ETH_CLIENT_ADDRESS: *eth_client_address
EXTRA_ARGS: ${EXTRA_ARGS}
<<:

View File

@ -95,7 +95,7 @@ exec /usr/bin/wakunode\
--rln-relay-eth-contract-address="${RLN_RELAY_CONTRACT_ADDRESS}"\
--rln-relay-eth-client-address="${ETH_CLIENT_ADDRESS}"\
--rln-relay-tree-path="/etc/rln_tree"\
--rln-relay-cred-password="password"\
--rln-relay-cred-password="${KEYSTORE_PASSWORD}"\
--rln-relay-cred-path="/keystore/keystore.json"\
${RLN_RELAY_CRED_PATH}\
${RLN_RELAY_CRED_PASSWORD}\