mirror of
https://github.com/logos-messaging/go-waku-compose.git
synced 2026-01-07 15:33:06 +00:00
fixes
This commit is contained in:
parent
83ee9f31b1
commit
27ba87a7e2
@ -50,7 +50,7 @@ curl http://127.0.0.1:8645/debug/v1/version
|
|||||||
curl http://127.0.0.1:8645/debug/v1/info
|
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" \
|
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"}'
|
-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" \
|
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"
|
-H "accept: application/json"
|
||||||
|
|||||||
@ -47,6 +47,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
DOMAIN: ${DOMAIN}
|
DOMAIN: ${DOMAIN}
|
||||||
NODEKEY: ${NODEKEY}
|
NODEKEY: ${NODEKEY}
|
||||||
|
KEYSTORE_PASSWORD: ${KEYSTORE_PASSWORD}
|
||||||
ETH_CLIENT_ADDRESS: *eth_client_address
|
ETH_CLIENT_ADDRESS: *eth_client_address
|
||||||
EXTRA_ARGS: ${EXTRA_ARGS}
|
EXTRA_ARGS: ${EXTRA_ARGS}
|
||||||
<<:
|
<<:
|
||||||
|
|||||||
@ -95,7 +95,7 @@ exec /usr/bin/wakunode\
|
|||||||
--rln-relay-eth-contract-address="${RLN_RELAY_CONTRACT_ADDRESS}"\
|
--rln-relay-eth-contract-address="${RLN_RELAY_CONTRACT_ADDRESS}"\
|
||||||
--rln-relay-eth-client-address="${ETH_CLIENT_ADDRESS}"\
|
--rln-relay-eth-client-address="${ETH_CLIENT_ADDRESS}"\
|
||||||
--rln-relay-tree-path="/etc/rln_tree"\
|
--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="/keystore/keystore.json"\
|
||||||
${RLN_RELAY_CRED_PATH}\
|
${RLN_RELAY_CRED_PATH}\
|
||||||
${RLN_RELAY_CRED_PASSWORD}\
|
${RLN_RELAY_CRED_PASSWORD}\
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user