Open tj57 opened 8 months ago
As mentioned here you get the information via the receive
. The receive
command is exposed via the receive
REST API endpoint.
Thank you for your reply. I am trying to call this function, like
curl -X 'GET' \
'http://nas:8488/v1/receive/%2B48726447181' \
-H 'accept: application/json'
but I got
Bad Request
{"error":"websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header"}
with this I got not output
curl -X 'GET' \
-H 'accept: application/json' \
--no-buffer \
--header "Connection: Upgrade" \
--header "Upgrade: websocket" \
--header "Sec-WebSocket-Version: 13" \
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \
--output - \
'http://nas:8488/v1/receive/%2B48726447181'
How to read correct Sec-WebSocket-Key ? What am I doing wrong?
In json-rpc node you need to establish a websocket connection instead of a HTTP connection to the receive
endpoint. You can use any websocket client you want. e.g wscat
Ok, it works with websocat Do i understand correctly that in order to receive read receipts i have to pull listen on endpoint /v1/receive all messages and on v2/send send a message in another thread ?
How to match these messages ? On receive I see sourceUuid, but on /v2/send with {"logging": {"level": "debug"}... only {"timestamp":"1708629181076"}
Feature Request
Is it possible to verify that a specific message has been delivered or read by the recipient? If not, I would like to report such functionality